mirror of https://github.com/apache/openjpa.git
OPENJPA-1700 FindBugs - A null pointer is dereferenced here. This will lead to a NullPointerException when the code is executed.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@954696 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
73692a6d32
commit
4d5d2fb2bf
|
@ -451,7 +451,7 @@ public class ProductDerivations {
|
||||||
// most specific to least
|
// most specific to least
|
||||||
for (int i = _derivations.length - 1; i >= 0; i--) {
|
for (int i = _derivations.length - 1; i >= 0; i--) {
|
||||||
Set<String> members = _derivations[i].getSupportedQueryHints();
|
Set<String> members = _derivations[i].getSupportedQueryHints();
|
||||||
if (members != null || !members.isEmpty())
|
if (members != null && !members.isEmpty())
|
||||||
result.addAll(members);
|
result.addAll(members);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in New Issue