preventing the inference recompute from being triggered by empty file graphs

This commit is contained in:
brianjlowe 2013-10-11 16:03:55 -04:00
parent fd91aa4580
commit ea0822600b

View file

@ -218,7 +218,7 @@ public class FileGraphSetup implements ServletContextListener {
boolean isIsomorphic = dbModel.isIsomorphicWith(fileModel);
if (dbModel.isEmpty() ) {
if (dbModel.isEmpty() && !fileModel.isEmpty()) {
dbModel.add(fileModel);
modelChanged = true;
} else if (!isIsomorphic) {