diff --git a/batch/plugins/org.jboss.tools.batch.core/src/org/jboss/tools/batch/internal/core/impl/BatchBuilder.java b/batch/plugins/org.jboss.tools.batch.core/src/org/jboss/tools/batch/internal/core/impl/BatchBuilder.java index c8c970630e..8a7beeb7c9 100644 --- a/batch/plugins/org.jboss.tools.batch.core/src/org/jboss/tools/batch/internal/core/impl/BatchBuilder.java +++ b/batch/plugins/org.jboss.tools.batch.core/src/org/jboss/tools/batch/internal/core/impl/BatchBuilder.java @@ -344,7 +344,7 @@ public boolean visit(IResource resource) throws CoreException { } } for (int i = 0; i < srcs.length; i++) { - if(batch_jobs[i].isPrefixOf(path)) { + if(batch_jobs[i] != null && batch_jobs[i].isPrefixOf(path)) { if(f.getName().toLowerCase().endsWith(".xml")) { fileSet.addBatchJob(f); }