在我的Android应用程序中,我正在使用键盘的第三方库。我已成功集成它,它工作正常,但我有一个问题。
有时这个库项目崩溃导致我的应用程序崩溃。
如果崩溃发生在库项目中,那么我的应用程序没有崩溃吗?
请帮忙。
java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.indexOf(int)' on a null object reference
04-15 12:56:42.856 4765-4765/com.mse.monumentalnetworks E/AndroidRuntime: at android.app.ContextImpl.makeFilename(ContextImpl.java:1941)
04-15 12:56:42.856 4765-4765/com.mse.monumentalnetworks E/AndroidRuntime: at android.app.ContextImpl.getFileStreamPath(ContextImpl.java:549)
04-15 12:56:42.856 4765-4765/com.mse.monumentalnetworks E/AndroidRuntime: at android.content.ContextWrapper.getFileStreamPath(ContextWrapper.java:193)
04-15 12:56:42.856 4765-4765/com.mse.monumentalnetworks E/AndroidRuntime: at com.snaps.generic_emojikeyboard.AdapterEmoji.getView(AdapterEmoji.java:77)
04-15 12:56:42.856 4765-4765/com.mse.monumentalnetworks E/AndroidRuntime: at android.widget.AbsListView.obtainView(AbsListView.java:2346)
04-15 12:56:42.856 4765-4765/com.mse.monumentalnetworks E/AndroidRuntime: at android.widget.GridView.makeAndAddView(GridView.java:1440)
04-15 12:56:42.856 4765-4765/com.mse.monumentalnetworks E/AndroidRuntime: at android.widget.GridView.makeRow(GridView.java:366)
04-15 12:56:42.856 4765-4765/com.mse.monumentalnetworks E/AndroidRuntime: at android.widget.GridView.fillDown(GridView.java:307)
04-15 12:56:42.856 4765-4765/com.mse.monumentalnetworks E/AndroidRuntime: at android.widget.GridView.fillFromTop(GridView.java:442)
04-15 12:56:42.856 4765-4765/com.mse.monumentalnetworks E/AndroidRuntime: at android.widget.GridView.layoutChildren(GridView.java:1283)
04-15 12:56:42.856 4765-4765/com.mse.monumentalnetworks E/AndroidRuntime: at android.widget.AbsListView.onLayout(AbsListView.java:2148)