Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-8941

Android Debugger: NPE when debug stepping opens a file outside the project

    Details

    • Type: Bug
    • Status: Open
    • Priority: None
    • Resolution: Unresolved
    • Affects Version/s: Release 5.0.0
    • Fix Version/s: None
    • Component/s: Debugging
    • Labels:
      None
    • Environment:

      Mac OS 10.13
      Appc Studio: 5.0.0.201711290734
      Ti SDK: 7.0.0.v20171129100330
      Appc CLI: 7.0.0-master.54
      Node.js: 8.9.1

      Description

      During debug of a mobile project on Android, whenever during stepping through the suspended thread using step into/over/return whenever the next step opens up a different file that in not inside the mobile app project being debugged (like ti:/module.js or ti:/titanium.js or ti:/events.js etc) then error reports are generated for a Null Pointer Exception

      Steps to Reproduce:
      1. Create a default alloy project
      2. In the index.js file add a breakpoint on last line "$.index.open();"
      3. Now debug on android device or emulator
      4. When the breakpoint on the last line of the index.js is hit, perform step into. And continue to step in.

      Actual Result:
      1. Each time while stepping through a js file is opened that is outside the debugged project then an exception is reported

      !ENTRY org.eclipse.ui.workbench 4 0 2017-11-30 17:40:55.271
      !MESSAGE An unexpected exception was thrown.
      !STACK 0
      java.lang.NullPointerException
      	at com.aptana.js.internal.core.build.JSParserValidator.buildFile(JSParserValidator.java:83)
      	at com.aptana.core.internal.build.LazyBuildParticipant.buildFile(LazyBuildParticipant.java:72)
      	at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.runParticipants(CommonReconcilingStrategy.java:337)
      	at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.reconcile(CommonReconcilingStrategy.java:277)
      	at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.access$0(CommonReconcilingStrategy.java:238)
      	at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy$1.propertyChanged(CommonReconcilingStrategy.java:88)
      	at org.eclipse.ui.part.WorkbenchPart.firePropertyChange(WorkbenchPart.java:132)
      	at org.eclipse.ui.texteditor.AbstractTextEditor.firePropertyChange(AbstractTextEditor.java:6387)
      	at org.eclipse.ui.texteditor.AbstractTextEditor.setInputWithNotify(AbstractTextEditor.java:4305)
      	at org.eclipse.ui.texteditor.AbstractTextEditor.setInput(AbstractTextEditor.java:4319)
      	at org.eclipse.ui.internal.WorkbenchPage.reuseEditor(WorkbenchPage.java:3037)
      	at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.openEditor(SourceLookupFacility.java:477)
      	at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.display(SourceLookupFacility.java:416)
      	at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceDisplayJob.runInUIThread(SourceLookupFacility.java:785)
      	at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:97)
      	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)
      	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3994)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3671)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      	at com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:126)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
      

        Attachments

          Activity

            People

            • Assignee:
              kkolipaka Kondal Kolipaka (Inactive)
              Reporter:
              ssekhri Satyam Sekhri
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: