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 236476 - NullPointerException at org.netbeans.modules.cordova.platforms.api.PlatformManager.getPlatform
Summary: NullPointerException at org.netbeans.modules.cordova.platforms.api.PlatformMa...
Status: RESOLVED INVALID
Alias: None
Product: web
Classification: Unclassified
Component: Cordova (show other bugs)
Version: 7.4
Hardware: All All
: P1 normal (vote)
Assignee: Jan Becicka
URL:
Keywords:
: 236477 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-09-27 14:24 UTC by Vladimir Riha
Modified: 2013-09-30 13:45 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 204207


Attachments
stacktrace (667 bytes, text/plain)
2013-09-27 14:25 UTC, Vladimir Riha
Details
sample project (631.34 KB, application/zip)
2013-09-30 06:19 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2013-09-27 14:24:59 UTC
Build: NetBeans IDE 7.4 RC2 (Build 201309252201)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b14
OS: Mac OS X

User Comments:
vriha: Sorry, no idea, maybe upon Cordova project creation?




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.cordova.platforms.api.PlatformManager.getPlatform(PlatformManager.java:62)
   at org.netbeans.modules.cordova.project.MobileConfigurationImpl.getDevice(MobileConfigurationImpl.java:118)
   at org.netbeans.modules.cordova.CordovaPerformer.properties(CordovaPerformer.java:305)
   at org.netbeans.modules.cordova.CordovaPerformer.access$100(CordovaPerformer.java:94)
   at org.netbeans.modules.cordova.CordovaPerformer$1.run(CordovaPerformer.java:196)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
Comment 1 Vladimir Riha 2013-09-27 14:25:03 UTC
Created attachment 140562 [details]
stacktrace
Comment 2 Vladimir Riha 2013-09-27 14:27:33 UTC
Happens also on IDE startup
Comment 3 Vladimir Riha 2013-09-27 14:27:49 UTC
... with Xcode 5
Comment 4 Jan Becicka 2013-09-27 17:03:21 UTC
works for me
Comment 5 Jan Becicka 2013-09-27 18:30:25 UTC
Is it possible, that nbproject/configs/*.properties files are malformed?
for instance "type" property is missing?
Comment 6 Vladimir Riha 2013-09-27 20:04:28 UTC
I only modified the 2 properties as described in issue 236479 to be able to build project. I'll reproduce it and attach the project here
Comment 7 Vladimir Riha 2013-09-30 06:19:54 UTC
Created attachment 140633 [details]
sample project

just right click on this project in IDE throws this exception. It is possible that the

ios.build.arch 

in iOS_1.properties file is incorrect (as a result of trying to modify properties file to make it build-able.
Comment 8 Jan Becicka 2013-09-30 06:27:34 UTC
in file iOS_1.properties you accidentally deleted 
type=ios
Comment 9 Vladimir Riha 2013-09-30 06:31:32 UTC
I see, thank you and sorry for false issue.
Comment 10 Jan Becicka 2013-09-30 13:45:52 UTC
*** Bug 236477 has been marked as a duplicate of this bug. ***