Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-7686

NullPointerException when trying to get a UserAgent for JS code assist

    Details

    • Story Points:
      5

      Description

      An exception occasionally happens when performing a code assist on a JS file:

      Exception in thread "Aptana: ContentAssistant.assist_delay_timer_name" org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
      	at org.eclipse.swt.SWT.error(SWT.java:4282)
      	at org.eclipse.swt.SWT.error(SWT.java:4197)
      	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:196)
      	at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
      	at org.eclipse.swt.widgets.Display.syncExec(Display.java:4613)
      	at com.aptana.editor.common.contentassist.ContentAssistant$AutoAssistListener.showAssist(ContentAssistant.java:456)
      	at com.aptana.editor.common.contentassist.ContentAssistant$AutoAssistListener.run(ContentAssistant.java:311)
      	at java.lang.Thread.run(Thread.java:680)
      Caused by: java.lang.NullPointerException
      	at com.aptana.core.internal.UserAgentManager.getUserAgentById(UserAgentManager.java:162)
      	at com.aptana.editor.common.contentassist.UserAgentManager.getUserAgentById(UserAgentManager.java:368)
      	at com.aptana.editor.common.contentassist.UserAgentManager.getUserAgentsByID(UserAgentManager.java:355)
      	at com.aptana.editor.common.contentassist.UserAgentManager.getActiveUserAgents(UserAgentManager.java:208)
      	at com.aptana.editor.common.contentassist.UserAgentManager.getUserAgentImages(UserAgentManager.java:309)
      	at com.aptana.editor.js.contentassist.JSContentAssistProcessor.addProposal(JSContentAssistProcessor.java:360)
      	at com.aptana.editor.js.contentassist.JSContentAssistProcessor.addKeywords(JSContentAssistProcessor.java:179)
      	at com.aptana.editor.js.contentassist.JSContentAssistProcessor.doComputeCompletionProposals(JSContentAssistProcessor.java:738)
      	at com.aptana.editor.common.CommonContentAssistProcessor.computeCompletionProposals(CommonContentAssistProcessor.java:417)
      	at com.aptana.editor.common.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:2221)
      	at com.aptana.editor.common.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:394)
      	at com.aptana.editor.common.contentassist.CompletionProposalPopup.access$7(CompletionProposalPopup.java:388)
      	at com.aptana.editor.common.contentassist.CompletionProposalPopup$1.run(CompletionProposalPopup.java:331)
      	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      	at com.aptana.editor.common.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:325)
      	at com.aptana.editor.common.contentassist.ContentAssistant$AutoAssistListener$1.run(ContentAssistant.java:468)
      	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
      	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3938)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3615)
      	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
      	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
      	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
      	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      	at com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:125)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
      

        Attachments

          Activity

            People

            • Assignee:
              sgibly Shalom Gibly
              Reporter:
              sgibly Shalom Gibly
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code