incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stefane...@apache.org
Subject svn commit: r1520038 - /sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/wizards/ConvertToBundleAction.java
Date Wed, 04 Sep 2013 14:49:04 GMT
Author: stefanegli
Date: Wed Sep  4 14:49:04 2013
New Revision: 1520038

URL: http://svn.apache.org/r1520038
Log:
SLING-3009 : avoid a npe

Modified:
    sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/wizards/ConvertToBundleAction.java

Modified: sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/wizards/ConvertToBundleAction.java
URL: http://svn.apache.org/viewvc/sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/wizards/ConvertToBundleAction.java?rev=1520038&r1=1520037&r2=1520038&view=diff
==============================================================================
--- sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/wizards/ConvertToBundleAction.java
(original)
+++ sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/wizards/ConvertToBundleAction.java
Wed Sep  4 14:49:04 2013
@@ -104,7 +104,7 @@ public class ConvertToBundleAction  impl
 						action.setEnabled(false);
 					} else {
 						Model mavenModel = MavenHelper.getMavenModel(project);
-						if ("bundle".equals(mavenModel.getPackaging())) {
+						if (mavenModel!=null && "bundle".equals(mavenModel.getPackaging())) {
 							action.setEnabled(true);
 						} else {
 							action.setEnabled(false);



Mime
View raw message