digitalrinaldo / hackystat-sensor-eclipse

Automatically exported from code.google.com/p/hackystat-sensor-eclipse
0 stars 0 forks source link

NPE in Eclipse sensor extractFileName() #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Aaron reports:

I found a bug a NullPointerException in the Eclipse Sensor.  During my
normal hacking an error dialog box popped up a couple of times saying
NullPointerException.  I didn't know where it was coming from.  I opened my
eclipse workspace log file (workspace\.metadata\.log) to find the following
error message. By the way, Austen has found this too 

!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.ui.workbench".
!STACK 0
java.lang.NullPointerException
    at org.hackystat.sensor.eclipse.EclipseSensor.extractFileName(
EclipseSensor.java:308)
    at
org.hackystat.sensor.eclipse.EclipseSensor$PartListenerAdapter.partOpened(Eclips
eSensor.java:783)
    at
org.eclipse.ui.internal.PartListenerList$5.run(PartListenerList.java:132)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at org.eclipse.core.runtime.Platform.run(Platform.java:857)
    at
org.eclipse.ui.internal.PartListenerList.fireEvent(PartListenerList.java:57)
    at .... 

Original issue reported on code.google.com by philipmj...@gmail.com on 6 Sep 2007 at 2:31

GoogleCodeExporter commented 8 years ago
Aaron notes:

I've figured out the NPE problem in the Eclipse Sensor.

Try doing a Open Declaration (F3 or Ctrl+Click) on something like String, 
ArrayList,
or any other class that you don't have the source for.  You'll see that the 
error
message pops up. 

thanks, Aaron

Original comment by philipmj...@gmail.com on 7 Sep 2007 at 4:45

GoogleCodeExporter commented 8 years ago

Original comment by hongb...@gmail.com on 23 Nov 2007 at 8:34