title: Android realm.io variables not set?
body: <p>I am having trouble using a query in realm.io. My code:</p>
  
  <pre><code>    public static void delete(Context context, Workday workday) {
         Realm realm = getRealm(context);
         realm.beginTransaction();
         RealmResults&lt;Workday&gt; workdays = realm.where(Workday.class)
              .equalTo("date", workday.getDate())
              .equalTo("hours", workday.getHours())
              .equalTo("minutes", workday.getMinutes())
              .findAll();
         workdays.remove(0);
         realm.commitTransaction();
  }
  </code></pre>
  
  <p>Debug: </p>
  
  <p><img src="https://i.stack.imgur.com/mvH6l.png" alt="enter image description here"></p>
  
  <p>Why is the data visible in the JSON line but not in the fields itself? What am I doing wrong?
  Thanks in advance!</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>This is my delete function and it does find the workday1 object:</p>
  
  <pre><code>public static void delete(Context context, Workday workday) {
      Realm realm = getRealm(context);
      realm.beginTransaction();
  
      Workday workday1 = realm.where(Workday.class)
              .equalTo("date", workday.getDate())
              .equalTo("hours", workday.getHours())
              .equalTo("minutes", workday.getMinutes())
              .findFirst();
  
      workday1.removeFromRealm();
      realm.commitTransaction();
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/n4kjQ.png" alt="enter image description here"></p>
  
  <p>When it executes the removeFromRealm method it crashes:</p>
  
  <p>java.lang.IllegalStateException: Illegal State: Row/Object is no longer valid to operate on. Was it deleted?</p>
  
  <p>How can I fix this?</p>