java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Using the following template definition: # Create a new ruble (http://wiki.appcelerator.org/display/tis/Creating+a+new+Ruble) # Paste in the following code: \\ {code} project_template "TabBarControllerTemplate" do |t| t.type = :titanium_mobile t.location = "git@github.com:DamageStudios/TabBarController.git" t.description = "Remote template. Requires network access." end {code} # Launch File > New > Titanium Mobile Project and progress to the template screen. Choose the TabBarControllTemplate and attempt to finish the wizard I can reliably get the following NPE: {code} !ENTRY com.appcelerator.titanium.ui 2 0 2011-11-03 20:04:37.057 !MESSAGE Internal error: null !STACK 0 java.lang.NullPointerException at com.appcelerator.titanium.ui.wizard.BasicNewTitaniumProjectWizard.createProjectFiles(BasicNewTitaniumProjectWizard.java:458) at com.appcelerator.titanium.mobile.ui.wizard.NewMobileProjectWizard.createProjectFiles(NewMobileProjectWizard.java:243) at com.appcelerator.titanium.ui.wizard.BasicNewTitaniumProjectWizard.finalizeProjectCreation(BasicNewTitaniumProjectWizard.java:364) at com.appcelerator.titanium.mobile.ui.wizard.NewMobileProjectWizard.createProject(NewMobileProjectWizard.java:146) at com.appcelerator.titanium.ui.wizard.BasicNewTitaniumProjectWizard$1.run(BasicNewTitaniumProjectWizard.java:188) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) {code} It appears that the project location is created asynchronously, and projectData.project.getLocation() is null at this point. If I put a breakpoint there and wait a few seconds, eventually that variable becomes non-null.
    via by Ingo Muschenetz,
  • Using the following template definition: # Create a new ruble (http://wiki.appcelerator.org/display/tis/Creating+a+new+Ruble) # Paste in the following code: \\ {code} project_template "TabBarControllerTemplate" do |t| t.type = :titanium_mobile t.location = "git@github.com:DamageStudios/TabBarController.git" t.description = "Remote template. Requires network access." end {code} # Launch File > New > Titanium Mobile Project and progress to the template screen. Choose the TabBarControllTemplate and attempt to finish the wizard I can reliably get the following NPE: {code} !ENTRY com.appcelerator.titanium.ui 2 0 2011-11-03 20:04:37.057 !MESSAGE Internal error: null !STACK 0 java.lang.NullPointerException at com.appcelerator.titanium.ui.wizard.BasicNewTitaniumProjectWizard.createProjectFiles(BasicNewTitaniumProjectWizard.java:458) at com.appcelerator.titanium.mobile.ui.wizard.NewMobileProjectWizard.createProjectFiles(NewMobileProjectWizard.java:243) at com.appcelerator.titanium.ui.wizard.BasicNewTitaniumProjectWizard.finalizeProjectCreation(BasicNewTitaniumProjectWizard.java:364) at com.appcelerator.titanium.mobile.ui.wizard.NewMobileProjectWizard.createProject(NewMobileProjectWizard.java:146) at com.appcelerator.titanium.ui.wizard.BasicNewTitaniumProjectWizard$1.run(BasicNewTitaniumProjectWizard.java:188) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) {code} It appears that the project location is created asynchronously, and projectData.project.getLocation() is null at this point. If I put a breakpoint there and wait a few seconds, eventually that variable becomes non-null.
    via by Ingo Muschenetz,
    • java.lang.NullPointerException at com.appcelerator.titanium.ui.wizard.BasicNewTitaniumProjectWizard.createProjectFiles(BasicNewTitaniumProjectWizard.java:458) at com.appcelerator.titanium.mobile.ui.wizard.NewMobileProjectWizard.createProjectFiles(NewMobileProjectWizard.java:243) at com.appcelerator.titanium.ui.wizard.BasicNewTitaniumProjectWizard.finalizeProjectCreation(BasicNewTitaniumProjectWizard.java:364) at com.appcelerator.titanium.mobile.ui.wizard.NewMobileProjectWizard.createProject(NewMobileProjectWizard.java:146) at com.appcelerator.titanium.ui.wizard.BasicNewTitaniumProjectWizard$1.run(BasicNewTitaniumProjectWizard.java:188) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
    No Bugmate found.