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 - NullPointerException at org.python.antlr.GrammarActions.makeDottedName
Summary: NullPointerException at org.python.antlr.GrammarActions.makeDottedName
Status: STARTED
Alias: None
Product: python
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: All All
: P4 normal (vote)
Assignee: Jenselme
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-26 11:55 UTC by Jenselme
Modified: 2016-09-19 15:04 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 225436


Attachments
stacktrace (3.10 KB, text/plain)
2016-07-26 11:55 UTC, Jenselme
Details

Note You need to log in before you can comment on or make changes to this bug.
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.