title: SQLite foreign key NullPointerException
body: <p>I'm using Android studio , sqlite database
  my code was working correctly , but when I added "posid" column to "contacts" table the program doesn't work</p>
  
  <p>logcat while insert contact
   <a href="https://i.stack.imgur.com/Kd7em.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Kd7em.png" alt="enter image description here"></a></p>
  
  <p>.........
  thanks for everybody can help me</p>