Skip to content

Commit

Permalink
0001673: snapshot functionality null pointers in open source
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Apr 17, 2014
1 parent 0294ece commit 9c72dd0
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -220,8 +220,10 @@ public static File createSnapshot(ISymmetricEngine engine) {
defaultParameters.load(in);
IOUtils.closeQuietly(in);
in = SnapshotUtil.class.getResourceAsStream("/symmetric-console-default.properties");
defaultParameters.load(in);
IOUtils.closeQuietly(in);
if (in != null) {
defaultParameters.load(in);
IOUtils.closeQuietly(in);
}
Properties effectiveParameters = engine.getParameterService().getAllParameters();
Properties changedParameters = new SortedProperties();
Map<String, ParameterMetaData> parameters = ParameterConstants.getParameterMetaData();
Expand Down

0 comments on commit 9c72dd0

Please sign in to comment.