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.

  • Following operations will reproduce the bug scene: 1) Create a new transformation (Now the new transformation is opened in the main window); 2) Add some transofmration steps into the newly created transformation; 3) Rename the new transformation with "Transformation settings" menu command; 4) Click on the tree item of the renamed transformation,esp the steps or database connections,Spoon will pop up a window says : An unexpected error occurred in Spoon: null 5) If you click "OK",a new window containing following stack trace info will show up : java.lang.NullPointerException at org.pentaho.di.ui.spoon.delegates.SpoonTreeDelegate.getTreeObjects(SpoonTreeDelegate.java:140) at org.pentaho.di.ui.spoon.Spoon.getTreeObjects(Spoon.java:1817) at org.pentaho.di.ui.spoon.Spoon.showSelection(Spoon.java:1832) at org.pentaho.di.ui.spoon.Spoon$7.widgetSelected(Spoon.java:1338) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:869) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:5617) at org.pentaho.di.ui.spoon.Spoon.run(Spoon.java:5713) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:379) -------------------------------- I think this bug has something to do with PDI-782,they are similar. Perhaps after the renaming of a transformation,spoon forget to replace the tree node index with new node name,so when the tree node gets clicked,Spoon cannot find the tree node index,then Spoon gets crashed.
    via by Phil Tsao,
  • Following operations will reproduce the bug scene: 1) Create a new transformation (Now the new transformation is opened in the main window); 2) Add some transofmration steps into the newly created transformation; 3) Rename the new transformation with "Transformation settings" menu command; 4) Click on the tree item of the renamed transformation,esp the steps or database connections,Spoon will pop up a window says : An unexpected error occurred in Spoon: null 5) If you click "OK",a new window containing following stack trace info will show up : java.lang.NullPointerException at org.pentaho.di.ui.spoon.delegates.SpoonTreeDelegate.getTreeObjects(SpoonTreeDelegate.java:140) at org.pentaho.di.ui.spoon.Spoon.getTreeObjects(Spoon.java:1817) at org.pentaho.di.ui.spoon.Spoon.showSelection(Spoon.java:1832) at org.pentaho.di.ui.spoon.Spoon$7.widgetSelected(Spoon.java:1338) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:869) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:5617) at org.pentaho.di.ui.spoon.Spoon.run(Spoon.java:5713) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:379) -------------------------------- I think this bug has something to do with PDI-782,they are similar. Perhaps after the renaming of a transformation,spoon forget to replace the tree node index with new node name,so when the tree node gets clicked,Spoon cannot find the tree node index,then Spoon gets crashed.
    via by Phil Tsao,
    • java.lang.NullPointerException at org.pentaho.di.ui.spoon.delegates.SpoonTreeDelegate.getTreeObjects(SpoonTreeDelegate.java:138) at org.pentaho.di.ui.spoon.Spoon.getTreeObjects(Spoon.java:1814) at org.pentaho.di.ui.spoon.Spoon.showSelection(Spoon.java:1829) at org.pentaho.di.ui.spoon.Spoon$7.widgetSelected(Spoon.java:1335) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.core.dialog.ErrorDialog.showErrorDialog(ErrorDialog.java:219) at org.pentaho.di.ui.core.dialog.ErrorDialog.<init>(ErrorDialog.java:73) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:5645) at org.pentaho.di.ui.spoon.Spoon.run(Spoon.java:5739) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:371)
    No Bugmate found.