Skip to content

Commit 8dcae31

Browse files
committed
Correction of isAssignableFrom usage inside tryGetValue
1 parent e9846d5 commit 8dcae31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/microsoft/exchange/webservices/data/property/complex/ExtendedPropertyCollection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public <T> boolean tryGetValue(Class<T> cls, ExtendedPropertyDefinition property
197197
new OutParam<ExtendedProperty>();
198198
if (this.tryGetProperty(propertyDefinition, extendedPropertyOut)) {
199199
extendedProperty = extendedPropertyOut.getParam();
200-
if (cls.isAssignableFrom(propertyDefinition.getType())) {
200+
if (!cls.isAssignableFrom(propertyDefinition.getType())) {
201201
String errorMessage = String.format(
202202
"Property definition type '%s' and type parameter '%s' aren't compatible.",
203203
propertyDefinition.getType().getSimpleName(),

0 commit comments

Comments
 (0)