Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException in NameSpace #77

Closed
GoogleCodeExporter opened this issue Apr 22, 2015 · 2 comments
Closed

NullPointerException in NameSpace #77

GoogleCodeExporter opened this issue Apr 22, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 11 Oct 2012 at 5:36

Attachments:

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 11 Oct 2012 at 7:26

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 12 Oct 2012 at 7:16

  • Changed state: Fixed

nickl- added a commit to beanshell/beanshell that referenced this issue Nov 8, 2017
Merge pejobo/beanshell2@bbab002 fix for pejobo/beanshell2#77 NullPointerException by calling getAllNames() after parsing a script without local member declaration.
nickl- added a commit to beanshell/beanshell that referenced this issue Jan 7, 2019
Merge pejobo/beanshell2@bbab002 fix for pejobo/beanshell2#77 NullPointerException by calling getAllNames() after parsing a script without local member declaration.
nickl- added a commit to beanshell/beanshell that referenced this issue Jan 7, 2019
Merge pejobo/beanshell2@bbab002 fix for pejobo/beanshell2#77 NullPointerException by calling getAllNames() after parsing a script without local member declaration.
nickl- added a commit to beanshell/beanshell that referenced this issue Mar 19, 2019
Merge pejobo/beanshell2@bbab002 fix for pejobo/beanshell2#77 NullPointerException by calling getAllNames() after parsing a script without local member declaration.
patniemeyer pushed a commit to beanshell/beanshell that referenced this issue Dec 6, 2023
Merge pejobo/beanshell2@bbab002 fix for pejobo/beanshell2#77 NullPointerException by calling getAllNames() after parsing a script without local member declaration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant