avoid NPE
authorolivier lamy <olamy@apache.org>
Wed, 30 Jan 2019 03:15:56 +0000 (13:15 +1000)
committerolivier lamy <olamy@apache.org>
Wed, 30 Jan 2019 03:15:56 +0000 (13:15 +1000)
Signed-off-by: olivier lamy <olamy@apache.org>
src/main/java/org/apache/maven/plugins/invoker/InstallMojo.java

index 3e89066..41ee47e 100644 (file)
@@ -458,7 +458,11 @@ public class InstallMojo
             for ( String projectId : dependencyProjects )\r
             {\r
                 MavenProject dependencyProject = projects.get( projectId );\r
-\r
+                if ( dependencyProject == null )\r
+                {\r
+                    getLog().error( "dependencyProject null for projectId=" + projectId );\r
+                    continue;\r
+                }\r
                 installProjectArtifacts( dependencyProject );\r
                 installProjectParents( dependencyProject );\r
             }\r