import com.secupwn.aimsicd.data.model.SmsDetectionString;
import io.realm.Realm;
public class DefaultDataTransaction implements Realm.Transaction {
@Override
public void execute(Realm realm) {
<BUG>if (realm.where(SmsDetectionString.class).count() == 0) {

SmsDetectionString smsDetectionString1 = realm.createObject(SmsDetectionString.class);</BUG>
smsDetectionString1.setDetectionString("Received short message type 0");
smsDetectionString1.setSmsType("TYPE0");

import com.secupwn.aimsicd.data.model.SmsDetectionString;
import io.realm.Realm;
public class DefaultDataTransaction implements Realm.Transaction {
@Override
public void execute(Realm realm) {
long count = realm.where(SmsDetectionString.class).count();
if (count == 0) {
SmsDetectionString smsDetectionString1 = realm.createObject(SmsDetectionString.class);
smsDetectionString1.setDetectionString("Received short message type 0");
smsDetectionString1.setSmsType("TYPE0");
