1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-06-24 12:34:52 +02:00
Smack/smack-core/src/main/java
Florian Schmaus b09cd06053 [core] Use XmppElementUtil.castOrThrow() in StanzaView.getExtension(Class)
This means that users get now exceptions with helpful error messages
instead of the dreaded ClassCastException, like

java.lang.ClassCastException: org.jivesoftware.smack.packet.StandardExtensionElement cannot be cast to org.jivesoftware.smackx.mam.element.MamElements$MamResultExtension
at

when StanzaView.getExtension(Class) is used to retrieve the extension.
2020-08-29 16:29:22 +02:00
..
org/jivesoftware/smack [core] Use XmppElementUtil.castOrThrow() in StanzaView.getExtension(Class) 2020-08-29 16:29:22 +02:00