mirror of
https://github.com/apache/openjpa.git
synced 2025-02-21 01:15:30 +00:00
OPENJPA-1700 FindBugs - Possible null pointer dereference; the clss cehck against null 3 lines up doesn't protect against a null value here
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@955399 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
13002d2025
commit
bc67e474bc
@ -176,7 +176,7 @@ class GetMapValue
|
||||
if (clss != null && clss.length > 1)
|
||||
throw RelationStrategies.unjoinable(field);
|
||||
|
||||
ClassMapping cls = (clss.length == 0) ? null : clss[0];
|
||||
ClassMapping cls = (clss == null || clss.length == 0) ? null : clss[0];
|
||||
ForeignKey fk = strat.getJoinForeignKey(cls);
|
||||
|
||||
// manually create a subselect for the Map's value
|
||||
|
Loading…
x
Reference in New Issue
Block a user