java.lang.NullPointerException

Spring JIRA | Imported | 10 years ago
  1. 0

    When browsing a config set which references a project which is closed, one receives the following NPE, accompanied with an error dialog: {code} java.lang.NullPointerException at org.springframework.ide.eclipse.core.model.ModelUtils.isExternal(ModelUtils.java:44) at org.springframework.ide.eclipse.beans.ui.model.BeansModelImages.getFlags(BeansModelImages.java:117) at org.springframework.ide.eclipse.beans.ui.model.BeansModelImages.getDecoratedImage(BeansModelImages.java:97) at org.springframework.ide.eclipse.beans.ui.model.BeansModelImages.getImage(BeansModelImages.java:57) at org.springframework.ide.eclipse.beans.ui.model.BeansModelLabelProvider.getImage(BeansModelLabelProvider.java:125) at org.springframework.ide.eclipse.ui.viewers.DecoratingWorkbenchTreePathLabelProvider.updateLabel(DecoratingWorkbenchTreePathLabelProvider.java:75) at org.eclipse.jface.viewers.StructuredViewer.buildLabel(StructuredViewer.java:2077) at org.eclipse.jface.viewers.TreeViewer.doUpdateItem(TreeViewer.java:252) at org.eclipse.jface.viewers.AbstractTreeViewer####UpdateItemSafeRunnable.run(AbstractTreeViewer.java:95) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:843) at org.eclipse.ui.internal.JFaceUtil####1.run(JFaceUtil.java:44) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149) at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:849) at org.eclipse.jface.viewers.StructuredViewer####UpdateItemSafeRunnable.run(StructuredViewer.java:465) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:843) at org.eclipse.ui.internal.JFaceUtil####1.run(JFaceUtil.java:44) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149) at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:1955) at org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem(AbstractTreeViewer.java:753) at org.eclipse.jface.viewers.AbstractTreeViewer####1.run(AbstractTreeViewer.java:731) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67) at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:705) at org.eclipse.jface.viewers.TreeViewer.createChildren(TreeViewer.java:892) at org.eclipse.jface.viewers.AbstractTreeViewer.handleTreeExpand(AbstractTreeViewer.java:1251) at org.eclipse.jface.viewers.AbstractTreeViewer####4.treeExpanded(AbstractTreeViewer.java:1263) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:181) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937) at org.eclipse.swt.widgets.Tree.wmNotifyChild(Tree.java:6315) at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:3794) at org.eclipse.swt.widgets.Composite.WM_NOTIFY(Composite.java:1166) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3298) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4025) at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method) at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:1844) at org.eclipse.swt.widgets.Tree.callWindowProc(Tree.java:1321) at org.eclipse.swt.widgets.Tree.WM_LBUTTONDOWN(Tree.java:5206) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3279) at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:4785) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4025) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966) at org.eclipse.jface.window.Window.runEventLoop(Window.java:820) at org.eclipse.jface.window.Window.open(Window.java:796) at org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:156) at org.eclipse.jface.action.Action.runWithEvent(Action.java:499) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539) at org.eclipse.jface.action.ActionContributionItem.access####2(ActionContributionItem.java:488) at org.eclipse.jface.action.ActionContributionItem####5.handleEvent(ActionContributionItem.java:400) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95) at org.eclipse.core.internal.runtime.PlatformActivator####1.run(PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336) at org.eclipse.core.launcher.Main.basicRun(Main.java:280) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952) {code} The config lines corresponding to the context files in the closed project are shown as blank. It would probably be better to highlight this with a warning message inline.

    Spring JIRA | 10 years ago | Imported
    java.lang.NullPointerException
  2. 0

    When browsing a config set which references a project which is closed, one receives the following NPE, accompanied with an error dialog: {code} java.lang.NullPointerException at org.springframework.ide.eclipse.core.model.ModelUtils.isExternal(ModelUtils.java:44) at org.springframework.ide.eclipse.beans.ui.model.BeansModelImages.getFlags(BeansModelImages.java:117) at org.springframework.ide.eclipse.beans.ui.model.BeansModelImages.getDecoratedImage(BeansModelImages.java:97) at org.springframework.ide.eclipse.beans.ui.model.BeansModelImages.getImage(BeansModelImages.java:57) at org.springframework.ide.eclipse.beans.ui.model.BeansModelLabelProvider.getImage(BeansModelLabelProvider.java:125) at org.springframework.ide.eclipse.ui.viewers.DecoratingWorkbenchTreePathLabelProvider.updateLabel(DecoratingWorkbenchTreePathLabelProvider.java:75) at org.eclipse.jface.viewers.StructuredViewer.buildLabel(StructuredViewer.java:2077) at org.eclipse.jface.viewers.TreeViewer.doUpdateItem(TreeViewer.java:252) at org.eclipse.jface.viewers.AbstractTreeViewer####UpdateItemSafeRunnable.run(AbstractTreeViewer.java:95) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:843) at org.eclipse.ui.internal.JFaceUtil####1.run(JFaceUtil.java:44) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149) at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:849) at org.eclipse.jface.viewers.StructuredViewer####UpdateItemSafeRunnable.run(StructuredViewer.java:465) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:843) at org.eclipse.ui.internal.JFaceUtil####1.run(JFaceUtil.java:44) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149) at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:1955) at org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem(AbstractTreeViewer.java:753) at org.eclipse.jface.viewers.AbstractTreeViewer####1.run(AbstractTreeViewer.java:731) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67) at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:705) at org.eclipse.jface.viewers.TreeViewer.createChildren(TreeViewer.java:892) at org.eclipse.jface.viewers.AbstractTreeViewer.handleTreeExpand(AbstractTreeViewer.java:1251) at org.eclipse.jface.viewers.AbstractTreeViewer####4.treeExpanded(AbstractTreeViewer.java:1263) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:181) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937) at org.eclipse.swt.widgets.Tree.wmNotifyChild(Tree.java:6315) at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:3794) at org.eclipse.swt.widgets.Composite.WM_NOTIFY(Composite.java:1166) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3298) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4025) at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method) at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:1844) at org.eclipse.swt.widgets.Tree.callWindowProc(Tree.java:1321) at org.eclipse.swt.widgets.Tree.WM_LBUTTONDOWN(Tree.java:5206) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3279) at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:4785) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4025) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966) at org.eclipse.jface.window.Window.runEventLoop(Window.java:820) at org.eclipse.jface.window.Window.open(Window.java:796) at org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:156) at org.eclipse.jface.action.Action.runWithEvent(Action.java:499) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539) at org.eclipse.jface.action.ActionContributionItem.access####2(ActionContributionItem.java:488) at org.eclipse.jface.action.ActionContributionItem####5.handleEvent(ActionContributionItem.java:400) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95) at org.eclipse.core.internal.runtime.PlatformActivator####1.run(PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336) at org.eclipse.core.launcher.Main.basicRun(Main.java:280) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952) {code} The config lines corresponding to the context files in the closed project are shown as blank. It would probably be better to highlight this with a warning message inline.

    Spring JIRA | 10 years ago | Imported
    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 org.springframework.ide.eclipse.core.model.ModelUtils.isExternal()
    2. org.springframework.ide
      DecoratingWorkbenchTreePathLabelProvider.updateLabel
      1. org.springframework.ide.eclipse.core.model.ModelUtils.isExternal(ModelUtils.java:44)
      2. org.springframework.ide.eclipse.beans.ui.model.BeansModelImages.getFlags(BeansModelImages.java:117)
      3. org.springframework.ide.eclipse.beans.ui.model.BeansModelImages.getDecoratedImage(BeansModelImages.java:97)
      4. org.springframework.ide.eclipse.beans.ui.model.BeansModelImages.getImage(BeansModelImages.java:57)
      5. org.springframework.ide.eclipse.beans.ui.model.BeansModelLabelProvider.getImage(BeansModelLabelProvider.java:125)
      6. org.springframework.ide.eclipse.ui.viewers.DecoratingWorkbenchTreePathLabelProvider.updateLabel(DecoratingWorkbenchTreePathLabelProvider.java:75)
      6 frames
    3. JFace
      TreeViewer.doUpdateItem
      1. org.eclipse.jface.viewers.StructuredViewer.buildLabel(StructuredViewer.java:2077)
      2. org.eclipse.jface.viewers.TreeViewer.doUpdateItem(TreeViewer.java:252)
      2 frames