I think this is false positive for provided java code sample:
public void getName(final ActionEvent event) {
Model server = getModel() == null
? null
: getModel().getServer();
try {
....
Sonar had a false positive error in line nr 4:
A "NullPointerException" could be thrown; "getModel()" can return null.
Colin
(Colin)
2
I’ve moved your post to the section on reporting false-positives.
Can you update your post with the information requested in this post?