{"action":"created","issue":{"url":"https://api.github.com/repos/pardom/ActiveAndroid/issues/299","labels_url":"https://api.github.com/repos/pardom/ActiveAndroid/issues/299/labels{/name}","comments_url":"https://api.github.com/repos/pardom/ActiveAndroid/issues/299/comments","events_url":"https://api.github.com/repos/pardom/ActiveAndroid/issues/299/events","html_url":"https://github.com/pardom/ActiveAndroid/issues/299","id":49467621,"number":299,"title":"NPE in Cache getTableName","user":{"login":"tomrozb","id":4646706,"avatar_url":"https://avatars.githubusercontent.com/u/4646706?v=3","gravatar_id":"","url":"https://api.github.com/users/tomrozb","html_url":"https://github.com/tomrozb","followers_url":"https://api.github.com/users/tomrozb/followers","following_url":"https://api.github.com/users/tomrozb/following{/other_user}","gists_url":"https://api.github.com/users/tomrozb/gists{/gist_id}","starred_url":"https://api.github.com/users/tomrozb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomrozb/subscriptions","organizations_url":"https://api.github.com/users/tomrozb/orgs","repos_url":"https://api.github.com/users/tomrozb/repos","events_url":"https://api.github.com/users/tomrozb/events{/privacy}","received_events_url":"https://api.github.com/users/tomrozb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2014-11-19T23:17:39Z","updated_at":"2015-01-17T13:24:29Z","closed_at":null,"body":"I'm looking into the crash reports for my app and I'm seeing a few crashes on the same line in ActiveAndroid.\r\n\r\n```\r\nCaused by: java.lang.NullPointerException\r\n       at com.activeandroid.Cache.getTableName(ProGuard:156)\r\n       at com.activeandroid.query.From.addFrom(ProGuard:169)\r\n       at com.activeandroid.query.From.toSql(ProGuard:250)\r\n       at com.activeandroid.query.From.executeSingle(ProGuard:311)\r\n```\r\n\r\nI've searched through the issues and it looks like it's common issue. I see it here: #291 #264 #109\r\n\r\nOne of my Activities can be started by 3rd party apps and one of the apps starts this activity within its own task. It's started from another process, but my activity is part of the 3rd party app backstack. Even though a new process is created for my app it sometimes crash on `getTableName` in `Cache`. The ActiveAndroid initialization code is places inside the `onCreate` method of the `Application` class. \r\n\r\nAny clues what can be wrong? In my opinion looks like problems with static references in ActiveAndroid or the returned `TableInfo` is null. What about starting the exported activity from another process, could this be the problem (I don't think so, since a new process is created)?"},"comment":{"url":"https://api.github.com/repos/pardom/ActiveAndroid/issues/comments/70366797","html_url":"https://github.com/pardom/ActiveAndroid/issues/299#issuecomment-70366797","issue_url":"https://api.github.com/repos/pardom/ActiveAndroid/issues/299","id":70366797,"user":{"login":"amolgupta","id":2570336,"avatar_url":"https://avatars.githubusercontent.com/u/2570336?v=3","gravatar_id":"","url":"https://api.github.com/users/amolgupta","html_url":"https://github.com/amolgupta","followers_url":"https://api.github.com/users/amolgupta/followers","following_url":"https://api.github.com/users/amolgupta/following{/other_user}","gists_url":"https://api.github.com/users/amolgupta/gists{/gist_id}","starred_url":"https://api.github.com/users/amolgupta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amolgupta/subscriptions","organizations_url":"https://api.github.com/users/amolgupta/orgs","repos_url":"https://api.github.com/users/amolgupta/repos","events_url":"https://api.github.com/users/amolgupta/events{/privacy}","received_events_url":"https://api.github.com/users/amolgupta/received_events","type":"User","site_admin":false},"created_at":"2015-01-17T13:24:29Z","updated_at":"2015-01-17T13:24:29Z","body":"I added the config to the manifest file to indicate the scan but still got this issue\r\n        <meta-data\r\n            android:name=\"AA_MODELS\"\r\n            android:value=\"xxx.xxxx.entities.Notification, xxx.xxx.entities.ActivityLog\" />\r\n"}}