Fix NPE for now

This commit is contained in:
Daniel Mills 2021-07-26 13:06:16 -04:00
parent 8b599f78c0
commit bca5f4bec4

View File

@ -94,12 +94,15 @@ public class IrisProject {
})); }));
try { try {
if(activeProvider != null && activeProvider.getCompound() != null)
{
for (int i = 0; i < getActiveProvider().getCompound().getSize(); i++) { for (int i = 0; i < getActiveProvider().getCompound().getSize(); i++) {
Engine e = getActiveProvider().getCompound().getEngine(i); Engine e = getActiveProvider().getCompound().getEngine(i);
IrisDimension dim = e.getDimension(); IrisDimension dim = e.getDimension();
reports.add(scanForErrors(dim)); reports.add(scanForErrors(dim));
} }
} }
}
catch(Throwable e) catch(Throwable e)
{ {