java.lang.NullPointerException

Appcelerator JIRA | Ingo Muschenetz | 5 years ago
  1. 0

    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.

    Appcelerator JIRA | 5 years ago | Ingo Muschenetz
    java.lang.NullPointerException
  2. 0

    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.

    Appcelerator JIRA | 5 years ago | Ingo Muschenetz
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.appcelerator.titanium.ui.wizard.BasicNewTitaniumProjectWizard.createProjectFiles()
    2. com.appcelerator.titanium
      BasicNewTitaniumProjectWizard$1.run
      1. com.appcelerator.titanium.ui.wizard.BasicNewTitaniumProjectWizard.createProjectFiles(BasicNewTitaniumProjectWizard.java:458)
      2. com.appcelerator.titanium.mobile.ui.wizard.NewMobileProjectWizard.createProjectFiles(NewMobileProjectWizard.java:243)
      3. com.appcelerator.titanium.ui.wizard.BasicNewTitaniumProjectWizard.finalizeProjectCreation(BasicNewTitaniumProjectWizard.java:364)
      4. com.appcelerator.titanium.mobile.ui.wizard.NewMobileProjectWizard.createProject(NewMobileProjectWizard.java:146)
      5. com.appcelerator.titanium.ui.wizard.BasicNewTitaniumProjectWizard$1.run(BasicNewTitaniumProjectWizard.java:188)
      5 frames
    3. JFace
      ModalContext$ModalContextThread.run
      1. org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
      1 frame