Skip to content

Commit d4ab619

Browse files
Properly return null if no readBinding is located when caching is active
1 parent bf9cbe4 commit d4ab619

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ng-core/src/main/java/ng/kvc/NGKeyValueCoding.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@ private static KVCReadBinding readBindingForKey( final Object object, final Stri
145145

146146
if( readBinding == null ) {
147147
readBinding = locateBindingForKey( object, key );
148+
149+
if( readBinding == null ) {
150+
return null;
151+
}
152+
148153
_readBindingCache.put( cacheKey, readBinding );
149154
}
150155

0 commit comments

Comments
 (0)