Skip to content

Commit 916361b

Browse files
committed
fix unknown property with realm
1 parent 46ebe25 commit 916361b

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

EVReflection.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "EVReflection"
3-
s.version = "5.4.4"
3+
s.version = "5.4.5"
44
s.summary = "Reflection based object mapping. (Dictionary, CKRecord, NSManagedObject, Realm, JSON, XML, Alamofire, Moya, RxSwift, ReactiveSwift)"
55

66
s.description = <<-EOS

Source/Realm/RealmObjectExtension.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,10 @@ extension Object {
4040
evPrint(.IncorrectKey, "WARNING: The class '\(EVReflection.swiftStringFromClass(self))' is not key value coding-compliant for the key '\(key)'\n❓ This could be a strange Realm List issue where the key is reported undefined but it's still set.\n")
4141
}
4242
}
43+
44+
// To make sure that we can get a value without crashing
45+
override open func value(forUndefinedKey key: String) -> Any? {
46+
return nil
47+
}
4348
}
4449

0 commit comments

Comments
 (0)