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

Summary: NullPointerException at org.python.antlr.GrammarActions.makeDottedText
Product: python Reporter: yop038
Component: EditorAssignee: Jenselme
Status: VERIFIED FIXED    
Severity: normal CC: Jenselme
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 215817
Attachments: stacktrace

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