Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.2.0
-
None
-
Liferay IDE 2.2.0.201410131306.
Description
- Create a liferay portlet project in Eclipse.
- In the project, double click liferay-portlet.xml then click Overview.
- In the Outline, click Expand All.
- Click Custom Display and Layout, in the Asset Renderer Factories click Add button then input the class name and create.
- Click Custom User Attribute, in Custom Class click Add button then input the class name and create.
- Click Custom Display and Layout again, do some editor in Asset Renderer Factory(add, delete, etc). Then you will find "NullPointerException" error in the Error Log.
Exception Stack Trace:
java.lang.NullPointerException
at org.eclipse.sapphire.ui.forms.swt.PropertyEditorPresentation.property(PropertyEditorPresentation.java:122)
at org.eclipse.sapphire.ui.forms.swt.ListPropertyEditorPresentation.property(ListPropertyEditorPresentation.java:76)
at org.eclipse.sapphire.ui.forms.swt.ListPropertyEditorPresentation.list(ListPropertyEditorPresentation.java:81)
at org.eclipse.sapphire.ui.forms.swt.TablePropertyEditorPresentation$MoveDownActionHandler.computeEnablementState(TablePropertyEditorPresentation.java:2317)
at org.eclipse.sapphire.ui.forms.PropertyEditorActionHandler$3.run(PropertyEditorActionHandler.java:83)
at org.eclipse.sapphire.ui.forms.swt.SwtUtil.runOnDisplayThread(SwtUtil.java:288)
at org.eclipse.sapphire.ui.forms.swt.SwtUtil.runOnDisplayThread(SwtUtil.java:304)
at org.eclipse.sapphire.ui.forms.PropertyEditorActionHandler.refreshEnablementState(PropertyEditorActionHandler.java:87)
at org.eclipse.sapphire.ui.forms.swt.TablePropertyEditorPresentation$SelectionBasedActionHandler$1.handle(TablePropertyEditorPresentation.java:2216)
at org.eclipse.sapphire.EventDeliveryJob.run(EventDeliveryJob.java:52)
at org.eclipse.sapphire.JobQueue.process(JobQueue.java:94)
at org.eclipse.sapphire.ListenerContext.broadcast(ListenerContext.java:126)
at org.eclipse.sapphire.ListenerContext.broadcast(ListenerContext.java:132)
at org.eclipse.sapphire.services.Service.broadcast(Service.java:126)
at org.eclipse.sapphire.ui.ListSelectionService.select(ListSelectionService.java:75)
at org.eclipse.sapphire.ui.forms.swt.TablePropertyEditorPresentation$14.selectionChanged(TablePropertyEditorPresentation.java:668)
at org.eclipse.sapphire.ui.forms.swt.TablePropertyEditorPresentation$SelectionProvider.notifySelectionChangedListeners(TablePropertyEditorPresentation.java:2406)
at org.eclipse.sapphire.ui.forms.swt.TablePropertyEditorPresentation$SelectionProvider.access$0(TablePropertyEditorPresentation.java:2400)
at org.eclipse.sapphire.ui.forms.swt.TablePropertyEditorPresentation$SelectionProvider$1.selectionChanged(TablePropertyEditorPresentation.java:2355)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:163)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:178)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2171)
at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1707)
at org.eclipse.jface.viewers.TableViewer.setSelection(TableViewer.java:162)
at org.eclipse.jface.viewers.Viewer.setSelection(Viewer.java:388)
at org.eclipse.sapphire.ui.forms.swt.TablePropertyEditorPresentation$DeleteActionHandler.executeTablePropertyEditorAction(TablePropertyEditorPresentation.java:2260)
at org.eclipse.sapphire.ui.forms.swt.TablePropertyEditorPresentation$TablePropertyEditorActionHandler.run(TablePropertyEditorPresentation.java:2160)
at org.eclipse.sapphire.ui.SapphireActionHandler.execute(SapphireActionHandler.java:95)
at org.eclipse.sapphire.ui.forms.swt.SapphireToolBarActionPresentation$1.widgetSelected(SapphireToolBarActionPresentation.java:113)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
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 org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
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:382)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236)
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:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)