Commit 4fca782f authored by Dominique Marcadet's avatar Dominique Marcadet

avoid potential ArrayOutOfBoundException

parent 1f3ce250
Pipeline #7731 passed with stages
in 29 seconds
......@@ -264,7 +264,7 @@ public class NsdResourceSetImpl extends AbstractRiseClipseResourceSet {
*/
private void buildExplicitLinks( IRiseClipseConsole console ) {
for( Resource resource : getResources() ) {
if( resource instanceof NsdResourceImpl ) {
if(( resource instanceof NsdResourceImpl ) && ( ! resource.getContents().isEmpty() )) {
DocumentRoot root = (DocumentRoot) resource.getContents().get( 0 );
if( root.getNS() != null ) {
root.getNS().buildExplicitLinks( console, true );
......
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