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:
Donald Woods 2010-06-15 02:16:27 +00:00
parent 73692a6d32
commit 4d5d2fb2bf
1 changed files with 1 additions and 1 deletions

View File

@ -451,7 +451,7 @@ public class ProductDerivations {
// most specific to least
for (int i = _derivations.length - 1; i >= 0; i--) {
Set<String> members = _derivations[i].getSupportedQueryHints();
if (members != null || !members.isEmpty())
if (members != null && !members.isEmpty())
result.addAll(members);
}
return result;