我试图在我的应用程序中集成quickblox的聊天服务,我设法将所有库添加到所有需要的类和布局中但是当我运行时我得到一个java.lang.NullPointerException in这一行:
int currentVersion = ApplicationSingleton.getInstance().getAppVersion();
我收到此错误
Caused by: vc908.stickerfactory.p$b: Storage manager not initialized. Use init(...) method before.
at vc908.stickerfactory.p.a(Unknown Source)
at vc908.stickerfactory.utils.KeyboardUtils.getKeyboardHeight(Unknown Source)
at com.superfans.com.superfans.chat.ui.activities.ChatActivity.updateStickersFrameParams(ChatActivity.java:278)
at com.superfans.com.superfans.chat.ui.activities.ChatActivity.initViews(ChatActivity.java:184)
at com.superfans.com.superfans.chat.ui.activities.ChatActivity.onCreate(ChatActivity.java:83)
at android.app.Activity.performCreate(Activity.java:5990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
at android.os.Handler.dispatchMessage(Handler.java:102)
在这一行:
stickersFrame.getLayoutParams().height = vc908.stickerfactory.utils.KeyboardUtils.getKeyboardHeight();
任何人都可以提供帮助和帮助。
答案 0 :(得分:2)