This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 194621 - NullPointerException at org.netbeans.modules.python.editor.PythonAstUtils.getFqnName
Summary: NullPointerException at org.netbeans.modules.python.editor.PythonAstUtils.get...
Status: RESOLVED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Lou Dasaro
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-23 13:42 UTC by Montserrat
Modified: 2015-05-26 04:23 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 143892


Attachments
stacktrace (2.62 KB, text/plain)
2011-01-23 13:42 UTC, Montserrat
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Montserrat 2011-01-23 13:42:30 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-6517-on-110122)
VM: Java HotSpot(TM) 64-Bit Server VM, 17.1-b03-307, Java(TM) SE Runtime Environment, 1.6.0_22-b04-307-10M3261
OS: Mac OS X

User Comments:
GUEST: ctrl + leftclick to move the pointer to function defenition

redent: First tried to find usages of a Python method, which gave an error. After that, the Navigator shows empty.

GUEST: unserted some c++ code ip .py-file

GUEST: tried to goto a method in jython script (methods clicked as hyperlink)

GUEST: Pressing CTRL+B to jump to a method under the caret. The method was in a dict that was incomplete (missing a comma, from one dict value to the next dict key). It's a dict for signals to connect to the ui in a PyGTK application. Hope it helps!




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.python.editor.PythonAstUtils.getFqnName(PythonAstUtils.java:343)
   at org.netbeans.modules.python.editor.PythonDeclarationFinder.findDeclaration(PythonDeclarationFinder.java:501)
   at org.netbeans.modules.gsfret.editor.hyperlink.GoToSupport$1.run(GoToSupport.java:154)
   at org.netbeans.modules.gsfret.editor.hyperlink.GoToSupport$1.run(GoToSupport.java:128)
   at org.netbeans.napi.gsfret.source.Source.runUserActionTask(Source.java:496)
   at org.netbeans.modules.gsfret.editor.hyperlink.GoToSupport.perform(GoToSupport.java:128)
Comment 1 Montserrat 2011-01-23 13:42:34 UTC
Created attachment 105279 [details]
stacktrace
Comment 2 Lou Dasaro 2015-05-26 03:45:08 UTC
Unable to replicate anomaly. Judging from the stacktrace, this appears to have been Fixed as part of GSF to CSL conversion in Development. 
To retest, make sure you are using a recent DEVELOPMENT version of NetBeans IDE from 
http://bits.netbeans.org/download/trunk/nightly/latest/
AND with Python plugin installed from "Latest Build" update center at 
http://bits.netbeans.org/dev/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/updates.xml.gz