public void addValues(final Set<String> values) { if (values != null || !values.isEmpty()) { //compiler warning here on values.isEmpty(). Null pointer access: The variable values can only be null at this location } } Why am I seeing this NullPointerAccess warning, though I am guarding against the null in the first check. If the value is null first check would fail and it will return without even going to the second check.
Can I ignore this warning.
I am using Eclipse for development.