diff --git a/src/main/java/org/ndexbio/common/persistence/CXNetworkLoader.java b/src/main/java/org/ndexbio/common/persistence/CXNetworkLoader.java index d3a05e2d..8faabc48 100644 --- a/src/main/java/org/ndexbio/common/persistence/CXNetworkLoader.java +++ b/src/main/java/org/ndexbio/common/persistence/CXNetworkLoader.java @@ -502,6 +502,7 @@ protected void persistNetworkData(InputStream in, boolean isAspectUpdate) if (actualCount == 0) { //metadata.remove(e.getName()); tobeRemovedMetaData.add(e.getName()); + warnings.add("Metadata of aspect " + e.getName() + " is removed by NDEx server because this aspect has no data in it."); } } // } @@ -516,7 +517,6 @@ protected void persistNetworkData(InputStream in, boolean isAspectUpdate) for (String name : tobeRemovedMetaData) { metadata.remove(name); - warnings.add("Metadata of aspect " + name + " is removed by NDEx server because this aspect has no data in it."); } // check if all the aspects has metadata for ( String aspectName : aspectTable.keySet() ){