Attempt to invoke virtual method 'java.lang.String com.activeandroid.TableInfo.getIdName()' on a null object reference <p>i am getting this Error </p> <pre><code>java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.activeandroid.TableInfo.getIdName()' on a null object reference </code></pre> <p>when i disable <strong>Instant Run</strong> i did not get any error my project works fine.</p> <p>But i want to keep <strong>instant Run</strong> <strong>Enabled</strong>. I find some where that if i want to <strong>enabled Instant Run</strong> i have to un-check the </p> <blockquote> <p>ReStart the Activity on code changes</p> </blockquote> <p>but this did not work for me.</p> <p>Any solution for this is highly appreciated.</p>