M201370367 / beanshell2

Automatically exported from code.google.com/p/beanshell2
0 stars 1 forks source link

NullPointerException in NameSpace #77

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an empty file
2. Parse the file
3. Call interpreter.getNameSpace().getAllNames() from Java.

What is the expected output? What do you see instead?
NullPointerException.

Actually as long as the source file does not contain global scope method 
declaration, you will see this error.

What version of the product are you using? On what operating system?
2.1b5

Please provide any additional information below.

NameSpace.getAllNamesAux(...)
Line 1219: need to check methods != null

Attached the patched src.

Original issue reported on code.google.com by verilo...@gmail.com on 11 Oct 2012 at 5:36

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by verilo...@gmail.com on 11 Oct 2012 at 7:26

GoogleCodeExporter commented 9 years ago

Original comment by verilo...@gmail.com on 12 Oct 2012 at 7:16