Quickblox 中的 NullPointerException
NullPointerException in Quickblox
我要 NullPointerException
。在日志猫中从 quickblox 获取对话框时,我可以看到对话框是从 quickblox 检索的,但是在设置适配器时,我得到这个:
java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference
10-26 01:04:16.331 21745-21745/? E/AndroidRuntime: at com.quickblox.chat.model.QBDialog.getType(Unknown Source)
这仅存在于发布版本中。在调试版本中,一切正常。有什么规则我应该添加到 progaurd 来消除这个错误吗?
这是我的 quickblox progaurd 规则:
#QuickBlox
-keep class org.jivesoftware.smack.initializer.VmArgInitializer { public *; }
-keep class org.jivesoftware.smack.ReconnectionManager { public *; }
-keep class com.quickblox.module.c.a.c { public *; }
-keep class com.quickblox.module.chat.QBChatService { public *; }
-keep class com.quickblox.module.chat.QBChatService.loginWithUser { public *; }
-keep class com.quickblox.module.chat.listeners.SessionCallback { public *; }
-keep class * extends org.jivesoftware.smack { public *; }
-keep class org.jivesoftware.smack.** { public *; }
-keep class org.jivesoftware.smackx.** { public *; }
-keep class com.quickblox.** { public *; }
-keep class com.quickblox.module** { public *; }
-keep class * extends org.jivesoftware.smack { public *; }
-keep class * implements org.jivesoftware.smack.debugger.SmackDebugger { public *; }
-keep class org.jivesoftware.** { public *; }
-keep class com.quickblox.* { public *; }
-keep class * extends org.jivesoftware.smack { public *; }
-keep class com.quickblox.chat.QBChatService.login* { public *; }
-keep class * extends com.quickblox.core.server.BaseService { public *; }
尝试添加:
-keep class com.quickblox.chat.**
-keep class com.quickblox.chat.** { *; }
-keepnames class com.quickblox.chat.**
-keepnames class com.quickblox.chat.** { *; }
-keepclassmembers class com.quickblox.chat.** {*;}
-keepclassmembers enum com.quickblox.chat.** {*;}
-keepclassmembers interface com.quickblox.chat.** {*;}
我要 NullPointerException
。在日志猫中从 quickblox 获取对话框时,我可以看到对话框是从 quickblox 检索的,但是在设置适配器时,我得到这个:
java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference
10-26 01:04:16.331 21745-21745/? E/AndroidRuntime: at com.quickblox.chat.model.QBDialog.getType(Unknown Source)
这仅存在于发布版本中。在调试版本中,一切正常。有什么规则我应该添加到 progaurd 来消除这个错误吗?
这是我的 quickblox progaurd 规则:
#QuickBlox
-keep class org.jivesoftware.smack.initializer.VmArgInitializer { public *; }
-keep class org.jivesoftware.smack.ReconnectionManager { public *; }
-keep class com.quickblox.module.c.a.c { public *; }
-keep class com.quickblox.module.chat.QBChatService { public *; }
-keep class com.quickblox.module.chat.QBChatService.loginWithUser { public *; }
-keep class com.quickblox.module.chat.listeners.SessionCallback { public *; }
-keep class * extends org.jivesoftware.smack { public *; }
-keep class org.jivesoftware.smack.** { public *; }
-keep class org.jivesoftware.smackx.** { public *; }
-keep class com.quickblox.** { public *; }
-keep class com.quickblox.module** { public *; }
-keep class * extends org.jivesoftware.smack { public *; }
-keep class * implements org.jivesoftware.smack.debugger.SmackDebugger { public *; }
-keep class org.jivesoftware.** { public *; }
-keep class com.quickblox.* { public *; }
-keep class * extends org.jivesoftware.smack { public *; }
-keep class com.quickblox.chat.QBChatService.login* { public *; }
-keep class * extends com.quickblox.core.server.BaseService { public *; }
尝试添加:
-keep class com.quickblox.chat.**
-keep class com.quickblox.chat.** { *; }
-keepnames class com.quickblox.chat.**
-keepnames class com.quickblox.chat.** { *; }
-keepclassmembers class com.quickblox.chat.** {*;}
-keepclassmembers enum com.quickblox.chat.** {*;}
-keepclassmembers interface com.quickblox.chat.** {*;}