JavaScript NULL Pointer Exception if function not exist
Open
Nobody has claimed this yet.
Stale
- Dominant language
- Java
- Stars
- 1.8k
- Forks
- 717
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 3
Description
It seems that JavaScriptFunction can be null. if you you try make a function call on a non existing function the application will throw an exception. since there is no way to check with the API if a JavaScriptFunction exist it would be nice that this case would be handled in the API code.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at server/src/main/java/com/vaadin/ui/JavaScript.java around line 58 and trace how a missing JavaScriptFunction is handled when a function call is made. Confirm the intended API behavior for a nonexistent function; done means this case no longer throws a null-pointer exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, javascript
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100