#86 NullPointerException in User.getDescription

closed
None
5
2014-08-14
2011-04-02
Anonymous
No

Hi,

when trying to do a "select * from xxx" statement on a local MySQL server with user "root" I get this NullPointerException:

Caused by: java.lang.NullPointerException
at net.sourceforge.sqlexplorer.dbproduct.User.getDescription(User.java:447)
at net.sourceforge.sqlexplorer.dbproduct.User.hashCode(User.java:499)
at org.eclipse.jface.viewers.CustomHashtable.hashCode(CustomHashtable.java:264)
at org.eclipse.jface.viewers.CustomHashtable.get(CustomHashtable.java:236)
at org.eclipse.jface.viewers.StructuredViewer.unmapElement(StructuredViewer.java:1926)
at org.eclipse.jface.viewers.StructuredViewer.disassociate(StructuredViewer.java:642)
at org.eclipse.jface.viewers.AbstractTreeViewer.disassociate(AbstractTreeViewer.java:838)
at org.eclipse.jface.viewers.TreeViewer.disassociate(TreeViewer.java:1117)
at org.eclipse.jface.viewers.AbstractTreeViewer.updateChildren(AbstractTreeViewer.java:2626)
at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefreshStruct(AbstractTreeViewer.java:1867)
at org.eclipse.jface.viewers.TreeViewer.internalRefreshStruct(TreeViewer.java:721)
at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefreshStruct(AbstractTreeViewer.java:1874)
at org.eclipse.jface.viewers.TreeViewer.internalRefreshStruct(TreeViewer.java:721)
at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:1842)
at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:1799)
at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:1785)
at org.eclipse.jface.viewers.StructuredViewer$7.run(StructuredViewer.java:1487)
at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1422)
at org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java:403)
at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1383)
at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1485)
at org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer.java:537)
at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1444)
at net.sourceforge.sqlexplorer.connections.ConnectionsView$5.run(ConnectionsView.java:216)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
... 22 more

Version information:

org.eclipse.platform (3.6.1.r361_v20100909-9pF78H4oFrRqo0j7kHFogDSz-B4nsSP2z-oW) "Eclipse Plattform"
org.eclipse.rcp (3.6.1.r361_v20100827-9oBYFOtFkzKz-ApYk1gu5D_V) "Eclipse RCP
net.sourceforge.sqlexplorer (3.6.1.v20110108_SR1) "SQLExplorer Plugin"

MySQL version 5.5.10

JDBC driver:
mysql-connector-java version 5.1.15-1

Discussion

  • Heiko Hilbert

    Heiko Hilbert - 2011-04-12
    • assigned_to: nobody --> hhilbert
     
  • Heiko Hilbert

    Heiko Hilbert - 2011-04-12

    Thank you for the report. It was a little bit hard to reproduce but the NPE you have posted comes from an error occured when trying to delete a user from a connection profile. There is no dependency with running a querty. So the delete error I have fixed. This will be available with next SR. This exception is a 'temporarly' problem. After restarting eclispes the delted user is disapeared and no more Exception will occure. If the NPE on running the select statement still occures, check your error log for other Excpetin stack traces, please.

     
  • Heiko Hilbert

    Heiko Hilbert - 2011-05-28
    • status: open --> closed
     
  • Heiko Hilbert

    Heiko Hilbert - 2011-05-28

    Fixed and released with 3.6.1 SR2

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks