Skip to Content
Menu
This question has been flagged
4145 Views

i have added a drawer menu in my android app.but when i click on that menu it appears "Unfortunately nERP has stopped".

I have added the error code.
 

com.odoo.crm E/AndroidRuntime:

FATAL EXCEPTION: ModernAsyncTask #4 Process: com.odoo.crm, PID: 2926 java.

lang.RuntimeException: An error occured while executing doInBackground() at android.support.v4.content.ModernAsyncTask$3.done(ModernAsyncTask.java:137)

at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)

at java.util.concurrent.FutureTask.setException(FutureTask.java:223)

at java.util.concurrent.FutureTask.run(FutureTask.java:242)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)

at java.lang.Thread.run(Thread.java:818)

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String

com.odoo.core.orm.OModel.getModelName()' on a null object reference at

com.odoo.core.orm.provider.BaseModelProvider.setMatcher(BaseModelProvider.java:85) at

com.odoo.core.orm.provider.BaseModelProvider.query(BaseModelProvider.java:92) at

android.content.ContentProvider.query(ContentProvider.java:1017) at

android.content.ContentProvider$Transport.query(ContentProvider.java:238) at

android.content.ContentResolver.query(ContentResolver.java:491) at

android.content.ContentResolver.query(ContentResolver.java:434) at

android.support.v4.content.CursorLoader.loadInBackground(CursorLoader.java:49) at

android.support.v4.content.CursorLoader.loadInBackground(CursorLoader.java:35) at

android.support.v4.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:242) at

android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:51) at

android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:40) at

android.support.v4.content.ModernAsyncTask$2.call(ModernAsyncTask.java:123) at

java.util.concurrent.FutureTask.run(FutureTask.java:237) at

java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)  at

java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)  at

java.lang.Thread.run(Thread.java:818)


can anybody help me???

 

Avatar
Discard