[jbosstools-issues] [JBoss JIRA] Resolved: (JBIDE-5816) NPE -> edit Hibernate Console configuration then Open Mapping file

Max Rydahl Andersen (JIRA) jira-events at lists.jboss.org
Tue Feb 9 15:36:10 EST 2010


     [ https://jira.jboss.org/jira/browse/JBIDE-5816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Max Rydahl Andersen resolved JBIDE-5816.
----------------------------------------

    Resolution: Done


committed fix that causes refresh of the tree when console configuration gets reset - this might happen more often than we think so should keep an eye on this to see if it causes bad things to happen.

> NPE -> edit Hibernate Console configuration then Open Mapping file
> ------------------------------------------------------------------
>
>                 Key: JBIDE-5816
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-5816
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Hibernate
>    Affects Versions: 3.1.0.CR2
>            Reporter: Vitali Yemialyanchyk
>            Assignee: Vitali Yemialyanchyk
>             Fix For: 3.1.0.CR2
>
>
> 1) create workable Hibernate core console config - with hibernate configured connection;
> 2) expand configuration tree;
> 3) edit console config -> setup configuration file - press apply, press ok;
> 4) try to open mapping file, as result -> npe;
> stack trace:
> java.lang.NullPointerException
> at org.hibernate.eclipse.console.utils.OpenMappingUtils.searchInMappingFiles(OpenMappingUtils.java:452)
> at org.hibernate.eclipse.console.utils.OpenMappingUtils.searchFileToOpen(OpenMappingUtils.java:619)
> at org.hibernate.eclipse.console.actions.OpenMappingAction.run(OpenMappingAction.java:123)
> at org.hibernate.eclipse.console.actions.OpenMappingAction.run(OpenMappingAction.java:104)
> at org.hibernate.eclipse.console.actions.OpenMappingAction.run(OpenMappingAction.java:72)
> at org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:168)
> at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
> at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
> at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

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

        


More information about the jbosstools-issues mailing list