Open
Description
I have the following code:
String s = null;
// do conditional stuff with "s"
s.length() // "Potential null pointer access" warning
Currently VS Code offers me 2 quick fixes:
- "Ignore compiler problem(s)"
- "Add @SuppressWarnings 'null' to myMethod"
A better quick fix option would be to add a "not nulll" check before the method calling.
Metadata
Metadata
Assignees
Labels
No labels