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 246026 - NullPointerException at org.netbeans.modules.cordova.platforms.android.AndroidDevice.addProperties
Summary: NullPointerException at org.netbeans.modules.cordova.platforms.android.Androi...
Status: RESOLVED INCOMPLETE
Alias: None
Product: web
Classification: Unclassified
Component: Cordova (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Roman Svitanic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-26 20:49 UTC by iluvtr
Modified: 2014-11-06 16:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 210927


Attachments
stacktrace (559 bytes, text/plain)
2014-07-26 20:49 UTC, iluvtr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description iluvtr 2014-07-26 20:49:42 UTC
This bug was originally marked as duplicate of bug 241689, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.0 (Build 201403101706)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b70, Java(TM) SE Runtime Environment, 1.8.0-b132
OS: Windows 7

User Comments:
iluvtr: Recently I changed the location of the Android SDK, I forgot to change the location in NB config, tried to run the project and I got this error, I think you should provide a better exception handling for situations like this. A message: 'An error has ocurred' is unacceptable, maybe a 'Android SDK not found. Please verify the location of the Android SDK'




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.cordova.platforms.android.AndroidDevice.addProperties(AndroidDevice.java:184)
   at org.netbeans.modules.cordova.CordovaPerformer.properties(CordovaPerformer.java:354)
   at org.netbeans.modules.cordova.CordovaPerformer.access$100(CordovaPerformer.java:95)
   at org.netbeans.modules.cordova.CordovaPerformer$1.run(CordovaPerformer.java:208)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
   at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Comment 1 iluvtr 2014-07-26 20:49:44 UTC
Created attachment 148339 [details]
stacktrace
Comment 2 Jan Becicka 2014-07-28 07:40:39 UTC
please run following command from command line:
android list target
and attach output here. Thanks
Comment 3 Roman Svitanic 2014-11-06 16:29:46 UTC
Please make sure that you have at least one Android SDK Platform installed, not only Android SDK tools. Without SDK Platform, Cordova won't be able to build the apk.