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 267313

Summary: NullPointerException at org.python.antlr.GrammarActions.makeDottedName
Product: python Reporter: Jenselme
Component: EditorAssignee: Jenselme
Status: STARTED ---    
Severity: normal CC: Jenselme
Priority: P4    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 225436
Attachments: stacktrace

Description Jenselme 2016-07-26 11:55:25 UTC
Build: NetBeans IDE Dev (Build 201607250002)
VM: OpenJDK 64-Bit Server VM, 25.92-b14, OpenJDK Runtime Environment, 1.8.0_92-b14
OS: Linux

User Comments:
Jenselme: Use an import, for instance:

from aot.game.pathfinding import a_start

add a dot berfore or after a dot to get a double dot, like:

from aot.game..pathfinding import a_start




Stacktrace: 
java.lang.NullPointerException
   at org.python.antlr.GrammarActions.makeDottedName(GrammarActions.java:95)
   at org.python.antlr.PythonParser.dotted_name(PythonParser.java:5682)
   at org.python.antlr.PythonParser.import_from(PythonParser.java:4988)
   at org.python.antlr.PythonParser.import_stmt(PythonParser.java:4796)
   at org.python.antlr.PythonParser.small_stmt(PythonParser.java:2731)
   at org.python.antlr.PythonParser.simple_stmt(PythonParser.java:2524)
Comment 1 Jenselme 2016-07-26 11:55:27 UTC
Created attachment 161446 [details]
stacktrace
Comment 2 Jenselme 2016-09-19 15:04:28 UTC
changeset:   18429:91dd6de4e7c9
tag:         tip
user:        Julien Enselme <jenselme@netbeans.org>
date:        Mon Sep 19 17:04:00 2016 +0200
files:       python.source/src/org/netbeans/modules/python/source/PythonParser.java
description:
#267313 Don't report NullPtrExcep in PythonParser.standardParse

Log them instead.