Commit 60354c25 authored by Dominique Marcadet's avatar Dominique Marcadet

Merge branch '6-avoid-possible-npe-in-finalizeload' into 'master'

Resolve "Avoid possible NPE in finalizeLoad()"

Closes #6

See merge request !5
parents 7c0e7166 81a31aee
......@@ -52,8 +52,10 @@ public class SclResourceImpl extends XMLResourceImpl implements IRiseClipseResou
@Override
public void finalizeLoad( boolean ignore_unresolved_reference ) {
ExplicitLinkResolver scl = ( ExplicitLinkResolver ) getContents().get( 0 );
scl.resolveLinks();
if( getContents().size() > 0 ) {
ExplicitLinkResolver scl = ( ExplicitLinkResolver ) getContents().get( 0 );
scl.resolveLinks();
}
}
} // SclResourceImpl
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment