{"action":"created","issue":{"url":"https://api.github.com/repos/Odoo-mobile/framework/issues/261","repository_url":"https://api.github.com/repos/Odoo-mobile/framework","labels_url":"https://api.github.com/repos/Odoo-mobile/framework/issues/261/labels{/name}","comments_url":"https://api.github.com/repos/Odoo-mobile/framework/issues/261/comments","events_url":"https://api.github.com/repos/Odoo-mobile/framework/issues/261/events","html_url":"https://github.com/Odoo-mobile/framework/issues/261","id":190572896,"number":261,"title":"java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.odoo.core.orm.OModel.getModelName()' on a null object reference","user":{"login":"kasim1011","id":7657803,"avatar_url":"https://avatars.githubusercontent.com/u/7657803?v=3","gravatar_id":"","url":"https://api.github.com/users/kasim1011","html_url":"https://github.com/kasim1011","followers_url":"https://api.github.com/users/kasim1011/followers","following_url":"https://api.github.com/users/kasim1011/following{/other_user}","gists_url":"https://api.github.com/users/kasim1011/gists{/gist_id}","starred_url":"https://api.github.com/users/kasim1011/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasim1011/subscriptions","organizations_url":"https://api.github.com/users/kasim1011/orgs","repos_url":"https://api.github.com/users/kasim1011/repos","events_url":"https://api.github.com/users/kasim1011/events{/privacy}","received_events_url":"https://api.github.com/users/kasim1011/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-20T18:02:53Z","updated_at":"2016-11-20T18:27:30Z","closed_at":"2016-11-20T18:25:19Z","body":"I've done fresh install of Application. I'm getting `NullPointerException` at `setMatcher(BaseModelProvider.java:85) method`.\r\n\r\nHere's the full log\r\n\r\n\tI/OdooActivity: Loading fragment: com.odoo.addons.customers.Customers\r\n\tI/OFragmentUtils: Fragment Loaded (com.odoo.addons.customers.Customers)\r\n\tE/AndroidRuntime: FATAL EXCEPTION: ModernAsyncTask #1\r\n\t\t\t\t\t  Process: com.odoo, PID: 31374\r\n\t\t\t\t\t  java.lang.RuntimeException: An error occurred while executing doInBackground()\r\n\t\t\t\t\t\t  at android.support.v4.content.ModernAsyncTask$3.done(ModernAsyncTask.java:153)\r\n\t\t\t\t\t\t  at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)\r\n\t\t\t\t\t\t  at java.util.concurrent.FutureTask.setException(FutureTask.java:223)\r\n\t\t\t\t\t\t  at java.util.concurrent.FutureTask.run(FutureTask.java:242)\r\n\t\t\t\t\t\t  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)\r\n\t\t\t\t\t\t  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)\r\n\t\t\t\t\t\t  at java.lang.Thread.run(Thread.java:818)\r\n\t\t\t\t\t   Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.odoo.core.orm.OModel.getModelName()' on a null object reference\r\n\t\t\t\t\t\t  at com.odoo.core.orm.provider.BaseModelProvider.setMatcher(BaseModelProvider.java:85)\r\n\t\t\t\t\t\t  at com.odoo.core.orm.provider.BaseModelProvider.query(BaseModelProvider.java:92)\r\n\t\t\t\t\t\t  at android.content.ContentProvider.query(ContentProvider.java:1017)\r\n\t\t\t\t\t\t  at android.content.ContentProvider$Transport.query(ContentProvider.java:238)\r\n\t\t\t\t\t\t  at android.content.ContentResolver.query(ContentResolver.java:491)\r\n\t\t\t\t\t\t  at android.support.v4.content.ContentResolverCompatJellybean.query(ContentResolverCompatJellybean.java:29)\r\n\t\t\t\t\t\t  at android.support.v4.content.ContentResolverCompat$ContentResolverCompatImplJB.query(ContentResolverCompat.java:57)\r\n\t\t\t\t\t\t  at android.support.v4.content.ContentResolverCompat.query(ContentResolverCompat.java:125)\r\n\t\t\t\t\t\t  at android.support.v4.content.CursorLoader.loadInBackground(CursorLoader.java:59)\r\n\t\t\t\t\t\t  at android.support.v4.content.CursorLoader.loadInBackground(CursorLoader.java:37)\r\n\t\t\t\t\t\t  at android.support.v4.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:296)\r\n\t\t\t\t\t\t  at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:54)\r\n\t\t\t\t\t\t  at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:42)\r\n\t\t\t\t\t\t  at android.support.v4.content.ModernAsyncTask$2.call(ModernAsyncTask.java:133)\r\n\t\t\t\t\t\t  at java.util.concurrent.FutureTask.run(FutureTask.java:237)\r\n\t\t\t\t\t\t  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) \r\n\t\t\t\t\t\t  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) \r\n\t\t\t\t\t\t  at java.lang.Thread.run(Thread.java:818) \r\n\r\n**Update**\r\n\r\nI'm putting entire log from `LoginActivity` **login** button pressed to Application Force Stop. Hope It might Help. **Note:** I've **instant run** enabled in my Android studio.\r\n\r\n\tI/OdooAccountManager: Demo User Logged in successfully\r\n\tI/OSyncAdapter: User        : demo[adyen_8]\r\n\tI/OSyncAdapter: Model       : res.company\r\n\tI/OSyncAdapter: Database    : OdooSQLite_demo_adyen_8.db\r\n\tI/OSyncAdapter: Odoo Version: 8.0\r\n\tV/OSyncAdapter: Sync for (res.company) Started at 2016-11-20 23:42:41\r\n\tV/OSyncAdapter: Processing 1 records\r\n\tI/OSQLite: creating database.\r\n\tE/SQLiteLog: (1) no such table: res_company\r\n\tW/System.err: android.database.sqlite.SQLiteException: no such table: res_company (code 1): , while compiling: SELECT count(*) FROM res_company WHERE id = ?\r\n\tW/System.err:     at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)\r\n\tW/System.err:     at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:887)\r\n\tW/System.err:     at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:498)\r\n\tW/System.err:     at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)\r\n\tW/System.err:     at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:58)\r\n\tW/System.err:     at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:37)\r\n\tW/System.err:     at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:44)\r\n\tW/System.err:     at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1316)\r\n\tW/System.err:     at android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1163)\r\n\tW/System.err:     at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1034)\r\n\tW/System.err:     at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1202)\r\n\tW/System.err:     at com.odoo.core.orm.OModel.count(OModel.java:905)\r\n\tW/System.err:     at com.odoo.core.orm.OModel.hasServerRecord(OModel.java:804)\r\n\tW/System.err:     at com.odoo.core.service.OSyncDataUtils.checkLocalUpdatedRecords(OSyncDataUtils.java:86)\r\n\tW/System.err:     at com.odoo.core.service.OSyncDataUtils.handleResult(OSyncDataUtils.java:72)\r\n\tW/System.err:     at com.odoo.core.service.OSyncAdapter.syncData(OSyncAdapter.java:201)\r\n\tW/System.err:     at com.odoo.core.service.OSyncAdapter.onPerformSync(OSyncAdapter.java:134)\r\n\tW/System.err:     at com.odoo.core.orm.OModel.quickCreateRecord(OModel.java:1113)\r\n\tW/System.err:     at com.odoo.core.account.OdooLogin$AccountCreator.doInBackground(OdooLogin.java:380)\r\n\tW/System.err:     at com.odoo.core.account.OdooLogin$AccountCreator.doInBackground(OdooLogin.java:358)\r\n\tW/System.err:     at android.os.AsyncTask$2.call(AsyncTask.java:295)\r\n\tW/System.err:     at java.util.concurrent.FutureTask.run(FutureTask.java:237)\r\n\tW/System.err:     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)\r\n\tW/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)\r\n\tW/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)\r\n\tW/System.err:     at java.lang.Thread.run(Thread.java:818)\r\n\tI/OSyncDataUtils: 0 records affected\r\n\tW/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.odoo.core.orm.OModel.getModelName()' on a null object reference\r\n\tW/System.err:     at com.odoo.core.orm.provider.BaseModelProvider.setMatcher(BaseModelProvider.java:85)\r\n\tW/System.err:     at com.odoo.core.orm.provider.BaseModelProvider.query(BaseModelProvider.java:92)\r\n\tW/System.err:     at android.content.ContentProvider.query(ContentProvider.java:1017)\r\n\tW/System.err:     at android.content.ContentProvider$Transport.query(ContentProvider.java:238)\r\n\tW/System.err:     at android.content.ContentResolver.query(ContentResolver.java:491)\r\n\tW/System.err:     at android.content.ContentResolver.query(ContentResolver.java:434)\r\n\tW/System.err:     at com.odoo.core.orm.OModel.select(OModel.java:641)\r\n\tW/System.err:     at com.odoo.core.orm.OModel.select(OModel.java:637)\r\n\tW/System.err:     at com.odoo.core.service.OSyncAdapter.removeRecordOnServer(OSyncAdapter.java:451)\r\n\tW/System.err:     at com.odoo.core.service.OSyncAdapter.syncData(OSyncAdapter.java:218)\r\n\tW/System.err:     at com.odoo.core.service.OSyncAdapter.onPerformSync(OSyncAdapter.java:134)\r\n\tW/System.err:     at com.odoo.core.orm.OModel.quickCreateRecord(OModel.java:1113)\r\n\tW/System.err:     at com.odoo.core.account.OdooLogin$AccountCreator.doInBackground(OdooLogin.java:380)\r\n\tW/System.err:     at com.odoo.core.account.OdooLogin$AccountCreator.doInBackground(OdooLogin.java:358)\r\n\tW/System.err:     at android.os.AsyncTask$2.call(AsyncTask.java:295)\r\n\tW/System.err:     at java.util.concurrent.FutureTask.run(FutureTask.java:237)\r\n\tW/System.err:     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)\r\n\tW/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)\r\n\tW/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)\r\n\tW/System.err:     at java.lang.Thread.run(Thread.java:818)\r\n\tW/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.odoo.core.orm.OModel.getModelName()' on a null object reference\r\n\tW/System.err:     at com.odoo.core.orm.provider.BaseModelProvider.setMatcher(BaseModelProvider.java:85)\r\n\tW/System.err:     at com.odoo.core.orm.provider.BaseModelProvider.query(BaseModelProvider.java:92)\r\n\tW/System.err:     at android.content.ContentProvider.query(ContentProvider.java:1017)\r\n\tW/System.err:     at android.content.ContentProvider$Transport.query(ContentProvider.java:238)\r\n\tW/System.err:     at android.content.ContentResolver.query(ContentResolver.java:491)\r\n\tW/System.err:     at android.content.ContentResolver.query(ContentResolver.java:434)\r\n\tW/System.err:     at com.odoo.core.orm.OModel.select(OModel.java:641)\r\n\tW/System.err:     at com.odoo.core.orm.OModel.select(OModel.java:637)\r\n\tW/System.err:     at com.odoo.core.orm.OModel.browse(OModel.java:588)\r\n\tW/System.err:     at com.odoo.core.orm.OModel.quickCreateRecord(OModel.java:1114)\r\n\tW/System.err:     at com.odoo.core.account.OdooLogin$AccountCreator.doInBackground(OdooLogin.java:380)\r\n\tW/System.err:     at com.odoo.core.account.OdooLogin$AccountCreator.doInBackground(OdooLogin.java:358)\r\n\tW/System.err:     at android.os.AsyncTask$2.call(AsyncTask.java:295)\r\n\tW/System.err:     at java.util.concurrent.FutureTask.run(FutureTask.java:237)\r\n\tW/System.err:     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)\r\n\tW/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)\r\n\tW/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)\r\n\tW/System.err:     at java.lang.Thread.run(Thread.java:818)\r\n\tI/OdooActivity: OdooActivity->onCreate\r\n\tI/Choreographer: Skipped 35 frames!  The application may be doing too much work on its main thread.\r\n\tI/OdooActivity: Loading fragment: com.odoo.addons.customers.Customers\r\n\tI/OFragmentUtils: Fragment Loaded (com.odoo.addons.customers.Customers)\r\n\tE/AndroidRuntime: FATAL EXCEPTION: ModernAsyncTask #1\r\n\t\t\t\t\t  Process: com.odoo, PID: 10163\r\n\t\t\t\t\t  java.lang.RuntimeException: An error occurred while executing doInBackground()\r\n\t\t\t\t\t\t  at android.support.v4.content.ModernAsyncTask$3.done(ModernAsyncTask.java:153)\r\n\t\t\t\t\t\t  at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)\r\n\t\t\t\t\t\t  at java.util.concurrent.FutureTask.setException(FutureTask.java:223)\r\n\t\t\t\t\t\t  at java.util.concurrent.FutureTask.run(FutureTask.java:242)\r\n\t\t\t\t\t\t  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)\r\n\t\t\t\t\t\t  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)\r\n\t\t\t\t\t\t  at java.lang.Thread.run(Thread.java:818)\r\n\t\t\t\t\t   Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.odoo.core.orm.OModel.getModelName()' on a null object reference\r\n\t\t\t\t\t\t  at com.odoo.core.orm.provider.BaseModelProvider.setMatcher(BaseModelProvider.java:85)\r\n\t\t\t\t\t\t  at com.odoo.core.orm.provider.BaseModelProvider.query(BaseModelProvider.java:92)\r\n\t\t\t\t\t\t  at android.content.ContentProvider.query(ContentProvider.java:1017)\r\n\t\t\t\t\t\t  at android.content.ContentProvider$Transport.query(ContentProvider.java:238)\r\n\t\t\t\t\t\t  at android.content.ContentResolver.query(ContentResolver.java:491)\r\n\t\t\t\t\t\t  at android.support.v4.content.ContentResolverCompatJellybean.query(ContentResolverCompatJellybean.java:29)\r\n\t\t\t\t\t\t  at android.support.v4.content.ContentResolverCompat$ContentResolverCompatImplJB.query(ContentResolverCompat.java:57)\r\n\t\t\t\t\t\t  at android.support.v4.content.ContentResolverCompat.query(ContentResolverCompat.java:125)\r\n\t\t\t\t\t\t  at android.support.v4.content.CursorLoader.loadInBackground(CursorLoader.java:59)\r\n\t\t\t\t\t\t  at android.support.v4.content.CursorLoader.loadInBackground(CursorLoader.java:37)\r\n\t\t\t\t\t\t  at android.support.v4.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:296)\r\n\t\t\t\t\t\t  at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:54)\r\n\t\t\t\t\t\t  at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:42)\r\n\t\t\t\t\t\t  at android.support.v4.content.ModernAsyncTask$2.call(ModernAsyncTask.java:133)\r\n\t\t\t\t\t\t  at java.util.concurrent.FutureTask.run(FutureTask.java:237)\r\n\t\t\t\t\t\t  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) \r\n\t\t\t\t\t\t  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) \r\n\t\t\t\t\t\t  at java.lang.Thread.run(Thread.java:818) \r\n\tI/Process: Sending signal. PID: 10163 SIG: 9\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Odoo-mobile/framework/issues/comments/261795336","html_url":"https://github.com/Odoo-mobile/framework/issues/261#issuecomment-261795336","issue_url":"https://api.github.com/repos/Odoo-mobile/framework/issues/261","id":261795336,"user":{"login":"r-mckay","id":3480946,"avatar_url":"https://avatars.githubusercontent.com/u/3480946?v=3","gravatar_id":"","url":"https://api.github.com/users/r-mckay","html_url":"https://github.com/r-mckay","followers_url":"https://api.github.com/users/r-mckay/followers","following_url":"https://api.github.com/users/r-mckay/following{/other_user}","gists_url":"https://api.github.com/users/r-mckay/gists{/gist_id}","starred_url":"https://api.github.com/users/r-mckay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r-mckay/subscriptions","organizations_url":"https://api.github.com/users/r-mckay/orgs","repos_url":"https://api.github.com/users/r-mckay/repos","events_url":"https://api.github.com/users/r-mckay/events{/privacy}","received_events_url":"https://api.github.com/users/r-mckay/received_events","type":"User","site_admin":false},"created_at":"2016-11-20T18:27:30Z","updated_at":"2016-11-20T18:27:30Z","body":"@kasim1011 glad it helped!"}}
{"actor":{"display_login":"r-mckay"}}