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 150581 - NPE in PythonEditor
Summary: NPE in PythonEditor
Status: VERIFIED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: ardavis26
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-17 21:03 UTC by sreimers
Modified: 2009-01-15 01:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stcktrace for NPE (2.32 KB, text/plain)
2008-10-17 21:05 UTC, sreimers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sreimers 2008-10-17 21:03:54 UTC
Clicking into a python file after opening it in the editor. Find the stacktrace attached.
Comment 1 sreimers 2008-10-17 21:05:09 UTC
Created attachment 72154 [details]
Stcktrace for NPE
Comment 2 Torbjorn Norbye 2008-10-17 21:53:08 UTC
I added a stresstest (which cycles through all the Python files in the Jython distribution and computes occurrences for
every single offset in each file) and it quickly found the problem - there are some AST patterns where it fails to
compute the call name, and the code wasn't expecting that. In addition to preventing that NPE, I'm fixing the problem
with computing the call name (there were nested Call nodes which it didn't expect).
Comment 3 Torbjorn Norbye 2008-10-18 01:49:47 UTC
Fixed by changeset b2572fc20367 (will be in build #74 on hudson-python)
Comment 4 Peter Lam 2008-11-21 18:14:58 UTC
verified in recent builds