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 252356 - NullPointerException at org.python.antlr.GrammarActions.makeDottedText
Summary: NullPointerException at org.python.antlr.GrammarActions.makeDottedText
Status: VERIFIED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Jenselme
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-12 08:13 UTC by yop038
Modified: 2015-09-19 18:52 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 215817


Attachments
stacktrace (2.61 KB, text/plain)
2015-05-12 08:14 UTC, yop038
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yop038 2015-05-12 08:13:56 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b15
OS: Windows 7

User Comments:
GUEST: import was broken

GUEST: netbeans was idling

yop038: trying to code complete with xebialabs libs :

https://github.com/xebialabs-community/overthere-pylib

GUEST: working on python code




Stacktrace: 
java.lang.NullPointerException
   at org.python.antlr.GrammarActions.makeDottedText(GrammarActions.java:732)
   at org.python.antlr.PythonParser.dotted_name(PythonParser.java:5802)
   at org.python.antlr.PythonParser.import_from(PythonParser.java:5096)
   at org.python.antlr.PythonParser.import_stmt(PythonParser.java:4895)
   at org.python.antlr.PythonParser.small_stmt(PythonParser.java:2689)
   at org.python.antlr.PythonParser.simple_stmt(PythonParser.java:2468)
Comment 1 yop038 2015-05-12 08:14:09 UTC
Created attachment 153614 [details]
stacktrace
Comment 2 Jenselme 2015-08-14 12:37:20 UTC
I was able to reproduce:

- Open a python file
- Type an import by stop at a dot, eg: `from os.` or `import os.`
- The NullPointerException should appear.
Comment 3 Jenselme 2015-08-14 19:46:51 UTC
Solved by http://hg.netbeans.org/main/contrib/rev/047218e7b04f