This is an automated email from the ASF dual-hosted git repository.

neilcsmith pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new 614ce26  NETBEANS-2824 No Properties dialog showing in 11.1vc1 for 
Java Application
     new 9ae414d  Merge pull request #1372 from jGauravGupta/NETBEANS-2824
614ce26 is described below

commit 614ce26795936eb01bab72f6ca7f24e53fa444a6
Author: Gaurav Gupta <[email protected]>
AuthorDate: Fri Jul 12 10:00:35 2019 +0530

    NETBEANS-2824 No Properties dialog showing in 11.1vc1 for Java Application
---
 .../modules/fish/payara/micro/project/MicroApplication.java         | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/MicroApplication.java
 
b/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/MicroApplication.java
index 43ef4c3..9404bce 100644
--- 
a/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/MicroApplication.java
+++ 
b/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/MicroApplication.java
@@ -145,8 +145,10 @@ public class MicroApplication {
     public static MicroApplication getInstance(Project project) {
         MicroApplication microApplication = null;
         if (project != null) {
-           MicroApplicationContent content = 
project.getLookup().lookup(MicroApplicationContent.class);
-           microApplication = content.getMicroApplication();
+            MicroApplicationContent content = 
project.getLookup().lookup(MicroApplicationContent.class);
+            if (content != null) {
+                microApplication = content.getMicroApplication();
+            }
         }
         return microApplication;
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to