Skip to content

Commit d2927b5

Browse files
committed
Add NPE protection due to apache/maven#11552
1 parent a0cecf4 commit d2927b5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/MavenProjectMutableState.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ public void restore(MavenProject project) {
7575
project.getProperties().putAll(properties);
7676
} catch(UnsupportedOperationException e) {
7777
//if the collection itself is immutable then we do not need to restore a snapshot because it can not be altered anyways!
78+
} catch(NullPointerException e) {
79+
//see https://github.com/apache/maven/issues/11552
7880
}
7981
}
8082

0 commit comments

Comments
 (0)