This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 110691 - NPE while opening AppClient
Summary: NPE while opening AppClient
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: App Client (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Lukas Jungmann
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2007-07-24 09:42 UTC by Tomas Mysik
Modified: 2007-08-07 12:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Mysik 2007-07-24 09:42:54 UTC
Product Version: NetBeans IDE Dev (Build 070724)
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05
System: Linux version 2.6.22-ck1 running on i386; UTF-8; cs_CZ (nb)

Steps:
- NB with clean userdir (no server)
- open existing AppClient project

Result:

java.lang.NullPointerException
	at 
org.netbeans.modules.j2ee.clientproject.AppClientActionProvider.isTargetServerRemote(AppClientActionProvider.java:752)
	at 
org.netbeans.modules.j2ee.clientproject.AppClientActionProvider.isActionEnabled(AppClientActionProvider.java:423)
	at org.netbeans.modules.project.ui.actions.ActionsUtil.commandSupported(ActionsUtil.java:128)
	at org.netbeans.modules.project.ui.actions.MainProjectAction.refreshView(MainProjectAction.java:138)
	at org.netbeans.modules.project.ui.actions.MainProjectAction.access$000(MainProjectAction.java:51)
	at org.netbeans.modules.project.ui.actions.MainProjectAction$1.run(MainProjectAction.java:120)
	at org.openide.util.Mutex.doEvent(Mutex.java:1181)
Comment 1 Petr Jiricka 2007-08-03 19:13:20 UTC
Cau Lukasi, Tomas says this is a regression caused by your commit. Are you planning to look at it? Please evaluate. Thanks.
Comment 2 Lukas Jungmann 2007-08-03 19:18:53 UTC
Yes, I'm going to fix this over the weekend. Thanks for the reminder.
Comment 3 Lukas Jungmann 2007-08-05 13:56:43 UTC
f. including similar issue in EAR, please verify.

IDE: [8/5/07 2:59 PM] Committing started
Checking in earproject/src/org/netbeans/modules/j2ee/earproject/ui/customizer/EarProjectProperties.java;
/cvs/j2ee/earproject/src/org/netbeans/modules/j2ee/earproject/ui/customizer/EarProjectProperties.java,v  <-- 
EarProjectProperties.java
new revision: 1.32; previous revision: 1.31
done
Checking in clientproject/src/org/netbeans/modules/j2ee/clientproject/AppClientActionProvider.java;
/cvs/j2ee/clientproject/src/org/netbeans/modules/j2ee/clientproject/AppClientActionProvider.java,v  <-- 
AppClientActionProvider.java
new revision: 1.8; previous revision: 1.7
done
Checking in earproject/src/org/netbeans/modules/j2ee/earproject/EarActionProvider.java;
/cvs/j2ee/earproject/src/org/netbeans/modules/j2ee/earproject/EarActionProvider.java,v  <--  EarActionProvider.java
new revision: 1.17; previous revision: 1.16
done
IDE: [8/5/07 2:59 PM] Committing finished
Comment 4 Tomas Mysik 2007-08-07 12:40:37 UTC
verified