From ea28784e8baa9228b38523d353ba2aea947e94d7 Mon Sep 17 00:00:00 2001 From: Tom Morris Date: Thu, 7 Oct 2010 14:19:42 +0000 Subject: [PATCH] Don't save null project if load failed git-svn-id: http://google-refine.googlecode.com/svn/trunk@1449 7d457c2a-affb-35e4-300a-418c747d4874 --- main/src/com/google/refine/ProjectManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/src/com/google/refine/ProjectManager.java b/main/src/com/google/refine/ProjectManager.java index bff49951f..c9743ddb6 100644 --- a/main/src/com/google/refine/ProjectManager.java +++ b/main/src/com/google/refine/ProjectManager.java @@ -336,9 +336,9 @@ public abstract class ProjectManager { return _projects.get(id); } else { Project project = loadProject(id); - - _projects.put(id, project); - + if (project != null) { + _projects.put(id, project); + } return project; } }