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 155870 - editing attribute in a class throws NPE
Summary: editing attribute in a class throws NPE
Status: VERIFIED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-20 01:33 UTC by Peter Lam
Modified: 2009-02-19 22:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide log file (29.12 KB, text/plain)
2008-12-20 01:34 UTC, Peter Lam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Lam 2008-12-20 01:33:51 UTC
daily build 20081219-404 on windows vista, jdk 1.6.0_11

I created the following 2 classes. While trying to edit the 2nd attribute in the "Child" class' constructor and the
caret is on the right of "self." after typing the dot, the NPE popped up. See attached ide log file for NPE stack trace.

class Parent():
    at1 = 1
    at2 = "What!"
    def __init__(self, val1):
        self.at1 = val1

class Child(Parent, WHATISIT):
    def __init__(self, val):
        self.at1 = val
        self.
Comment 1 Peter Lam 2008-12-20 01:34:33 UTC
Created attachment 75205 [details]
ide log file
Comment 2 Torbjorn Norbye 2008-12-31 04:46:21 UTC
I can't reproduce, but I've added code to check the arguments before trying to look up the attribute name.

Fixed in changeset 912dd30570af
Comment 3 Peter Lam 2009-01-10 04:29:16 UTC
verified in build 20090108. no longer reproducible.