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 221126

Summary: NullPointerException at org.netbeans.api.project.ProjectUtils$BasicInformation.getDisplayName
Product: javame Reporter: lehel
Component: Build SystemAssignee: Tomas Zezula <tzezula>
Status: RESOLVED FIXED    
Severity: normal CC: robertjava, zinckingeye
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 193053
Attachments: stacktrace

Description lehel 2012-10-30 18:32:44 UTC
Build: NetBeans IDE Dev (Build 201210240001)
VM: Java HotSpot(TM) Client VM, 23.5-b02, Java(TM) SE Runtime Environment, 1.7.0_09-b05
OS: Windows XP

User Comments:
lehel: Opening a J2ME project written in Netbeans 7.2

GUEST: ???????? ???? ? ?????????? ? ???? ????? ?? ????? ?
????? ?????? ??????

???? ??? ???????? ?? ????
http://netbeans.org/kb/docs/javame/splashscreen_ru.html?print=yes

GUEST: Creating project

zinckingeye: Opening sample j2me project from c:\

GUEST: Starting a new Mobile Application

GUEST: I was opening J2ME project.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.api.project.ProjectUtils$BasicInformation.getDisplayName(ProjectUtils.java:244)
   at org.netbeans.api.project.ProjectUtils$AnnotateIconProxyProjectInformation.getDisplayName(ProjectUtils.java:348)
   at org.netbeans.modules.project.ui.problems.BrokenReferencesImpl.showCustomizer(BrokenReferencesImpl.java:183)
   at org.netbeans.api.project.ui.ProjectProblems.showCustomizer(ProjectProblems.java:108)
   at org.netbeans.spi.java.project.support.ui.BrokenReferencesSupport.showAlert(BrokenReferencesSupport.java:167)
   at org.netbeans.modules.mobility.project.J2MEProject$ProjectOpenedHookImpl$2.run(J2MEProject.java:766)
Comment 1 lehel 2012-10-30 18:32:46 UTC
Created attachment 126799 [details]
stacktrace
Comment 2 Milos Kleint 2012-10-31 06:16:25 UTC
it appears that j2meproject can sometimes return null from getProjectDirectory() which is wrong. reassigning
Comment 3 Tomas Zezula 2012-10-31 08:30:07 UTC
Not so wrong when the project does not exist anymore (eg. deleted).
IMHO the J2ME project just return AntProjectHelper.getProjectDirectory().
In fact the project is not a J2ME project it's some other project, I think it's a lazy project.
Comment 4 Tomas Zezula 2012-10-31 09:57:55 UTC
Fixed jet-main 2e8a06485e06
Comment 5 Quality Engineering 2012-11-01 02:41:24 UTC
Integrated into 'main-golden', will be available in build *201211010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2e8a06485e06
User: Tomas Zezula <tzezula@netbeans.org>
Log: #221126:NullPointerException at org.netbeans.api.project.ProjectUtils$BasicInformation.getDisplayName
Comment 6 Milos Kleint 2012-11-05 07:58:01 UTC
*** Bug 221433 has been marked as a duplicate of this bug. ***