[jboss-jira] [JBoss JIRA] Commented: (JBRULES-769) NullPointer in Outline view

Kris Verlaenen (JIRA) jira-events at lists.jboss.org
Sun Apr 1 18:28:58 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBRULES-769?page=comments#action_12358051 ] 
            
Kris Verlaenen commented on JBRULES-769:
----------------------------------------

Could you include the drl file that was opened when this error occured? When looking at the code, it seems that the only way a NPE could have occured is when the parser returns a RuleDescr which contains null as one of its AttributeDescrs.  This should not occur and we might be able to correct this error if we know which drl caused this error. I will update the code of the outline viewer so the NPE will not occur, even in these circumstances.

> NullPointer in Outline view
> ---------------------------
>
>                 Key: JBRULES-769
>                 URL: http://jira.jboss.com/jira/browse/JBRULES-769
>             Project: JBoss Rules
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 3.1-m1
>            Reporter: Mark Proctor
>         Assigned To: Kris Verlaenen
>
> java.lang.NullPointerException
> 	at org.drools.eclipse.editors.outline.RuleContentOutlinePage.extractAttributes(Unknown Source)
> 	at org.drools.eclipse.editors.outline.RuleContentOutlinePage.populatePackageTreeNode(Unknown Source)
> 	at org.drools.eclipse.editors.outline.RuleContentOutlinePage.update(Unknown Source)
> 	at org.drools.eclipse.editors.outline.RuleContentOutlinePage.createControl(Unknown Source)
> 	at org.eclipse.ui.views.contentoutline.ContentOutline.doCreatePage(ContentOutline.java:134)
> 	at org.eclipse.ui.part.PageBookView.createPage(PageBookView.java:399)
> 	at org.eclipse.ui.part.PageBookView.partActivated(PageBookView.java:743)
> 	at org.eclipse.ui.part.PageBookView.showBootstrapPart(PageBookView.java:909)
> 	at org.eclipse.ui.part.PageBookView.createPartControl(PageBookView.java:482)
> 	at org.eclipse.ui.views.contentoutline.ContentOutline.createPartControl(ContentOutline.java:118)
> 	at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:332)
> 	at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:197)
> 	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
> 	at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:290)
> 	at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:525)
> 	at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:140)
> 	at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
> 	at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
> 	at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:394)
> 	at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1144)
> 	at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:620)
> 	at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:532)
> 	at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:562)
> 	at org.eclipse.ui.internal.PerspectiveHelper.activate(PerspectiveHelper.java:244)
> 	at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:815)
> 	at org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPage.java:2436)
> 	at org.eclipse.ui.internal.WorkbenchWindow$6.run(WorkbenchWindow.java:2616)
> 	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
> 	at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:2597)
> 	at org.eclipse.ui.internal.WorkbenchWindow.restoreState(WorkbenchWindow.java:1982)
> 	at org.eclipse.ui.internal.Workbench.doRestoreState(Workbench.java:2873)
> 	at org.eclipse.ui.internal.Workbench.access$14(Workbench.java:2821)
> 	at org.eclipse.ui.internal.Workbench$20.run(Workbench.java:1697)
> 	at org.eclipse.ui.internal.Workbench.runStartupWithProgress(Workbench.java:1437)
> 	at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1695)
> 	at org.eclipse.ui.internal.Workbench.access$12(Workbench.java:1666)
> 	at org.eclipse.ui.internal.Workbench$18.run(Workbench.java:1545)
> 	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> 	at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1489)
> 	at org.eclipse.ui.internal.WorkbenchConfigurer.restoreState(WorkbenchConfigurer.java:183)
> 	at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:702)
> 	at org.eclipse.ui.internal.Workbench.init(Workbench.java:1101)
> 	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1863)
> 	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
> 	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)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list