title: Unable to instantiate Sugar ORM database
body: <p>I have imported the latest version of android Sugar ORM library into eclipse and have referenced it from my project. To the manifest i have added the following meta tags:</p>
  
  <pre><code>   &lt;meta-data
          android:name="DATABASE"
          android:value="venn_app.db" /&gt;
      &lt;meta-data
          android:name="VERSION"
          android:value="7" /&gt;
      &lt;meta-data
          android:name="QUERY_LOG"
          android:value="true" /&gt;
  </code></pre>
  
  <p>This is my POJO object:</p>
  
  <pre><code>public class Event extends SugarRecord&lt;Event&gt; {
  
  int id;
  LatLng latLng = new LatLng(0,0);
  String name;
  Long startTime = new Long(0);
  boolean isSelected = false;
  boolean isCheckedIn = false;
  
  public Event(){ }
  
  public Event(int id, String name, LatLng latLng){
      startTime = System.currentTimeMillis(); // divide by 1000 to get seconds
      this.id = id;
      this.latLng = latLng;
      this.name = name;
      isSelected = false;
      isCheckedIn = false;
  }
  </code></pre>
  
  <p>This Call always results with null pointer exception even though the object is not null. Do i need to instantiate the Database?</p>
  
  <pre><code>            try {
  
                  Event event = new Event(0, name, lat, longi);
                  Log.d("sugar", event.toString());
                  event.save();
              } catch (Exception e) {
  
                  Log.d("sugar", "failed to add an event");
                  Log.d("sugar", e.toString());
              }
  </code></pre>
  
  <p>I am using Nexus 7.</p>