خرید بک لینک

Vote count: 0

I am using realm and I have the code

 realm = Realm.getDefaultInstance();
        realm.beginTransaction();
        RealmQuery<LogEntry> query = realm.where(LogEntry.class);

To query for results. Occasionally however this throws

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'io.realm.RealmQuery io.realm.Realm.where(java.lang.Class)' on a null object reference

Error. How can I prevent this?

asked 1 min ago

- - , .
.

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 24 تير 1395 ساعت: 10:20

صفحه بندی