Program: 40726
Project: 40726
Buggy source:
public void reload(Context ctx){
  if (lastReload + RELOAD_INTERVAL > SystemClock.elapsedRealtime()) {
    return;
  }
  Cursor prefs=ctx.getContentResolver().query(ALL_PREFS_URI,null,null,null,null);
  if (prefs == null) {
    XposedBridge.log("String_Node_Str");
    return;
  }
  while (prefs.moveToNext()) {
switch (Setting.fromString(prefs.getString(SettingsProvider.QUERY_ALL_KEY))) {
case MOD_ENABLED:
      modEnabled=prefs.getInt(SettingsProvider.QUERY_ALL_VALUE) == SettingsProvider.TRUE;
    continue;
case MMS_RESIZE_ENABLED:
  resizing=prefs.getInt(SettingsProvider.QUERY_ALL_VALUE) == SettingsProvider.TRUE;
continue;
case MMS_ROTATE_ENABLED:
rotation=prefs.getInt(SettingsProvider.QUERY_ALL_VALUE) == SettingsProvider.TRUE;
continue;
case MMS_ROTATE_MODE:
rotateMode=prefs.getInt(SettingsProvider.QUERY_ALL_VALUE);
continue;
case MMS_SCALE_WIDTH:
imageWidth=prefs.getInt(SettingsProvider.QUERY_ALL_VALUE);
continue;
case MMS_SCALE_HEIGHT:
imageHeight=prefs.getInt(SettingsProvider.QUERY_ALL_VALUE);
continue;
case MMS_IMAGE_TYPE:
imageFormat=Setting.ImageFormat.fromInt(prefs.getInt(SettingsProvider.QUERY_ALL_VALUE));
continue;
case MMS_IMAGE_QUALITY:
imageQuality=prefs.getInt(SettingsProvider.QUERY_ALL_VALUE);
continue;
case MMS_APN_SPLICING_ENABLED:
apnSplicing=prefs.getInt(SettingsProvider.QUERY_ALL_VALUE) == SettingsProvider.TRUE;
continue;
case MMS_APN_SPLICING_APN_CONFIG_PRESET:
apnPreset=Setting.ApnPreset.fromInt(prefs.getInt(SettingsProvider.QUERY_ALL_VALUE));
continue;
case MMS_APN_SPLICING_APN_CONFIG_MMSC:
mmsc=prefs.getString(SettingsProvider.QUERY_ALL_VALUE);
continue;
case MMS_APN_SPLICING_APN_CONFIG_PROXY_HOSTNAME:
proxyHost=prefs.getString(SettingsProvider.QUERY_ALL_VALUE);
continue;
case MMS_APN_SPLICING_APN_CONFIG_PROXY_PORT:
proxyPort=prefs.getInt(SettingsProvider.QUERY_ALL_VALUE);
continue;
case UI_ENTER_KEY:
enterKey=Setting.UiEnterKey.fromInt(prefs.getInt(SettingsProvider.QUERY_ALL_VALUE));
continue;
case UI_ATTACH_ANYTIME:
attachAnytime=prefs.getInt(SettingsProvider.QUERY_ALL_VALUE) == SettingsProvider.TRUE;
continue;
case UI_HIDE_CALL_BUTTONS:
hideCallButtons=prefs.getInt(SettingsProvider.QUERY_ALL_VALUE) == SettingsProvider.TRUE;
continue;
case UI_APP_COLOR:
appColor=Setting.AppColor.fromInt(prefs.getInt(SettingsProvider.QUERY_ALL_VALUE));
continue;
case DEBUG:
debug=prefs.getInt(SettingsProvider.QUERY_ALL_VALUE) == SettingsProvider.TRUE;
}
}
prefs.close();
}

Fixed version (ground truth):
public void reload(Context ctx){
  if (lastReload + RELOAD_INTERVAL > SystemClock.elapsedRealtime()) {
    return;
  }
  Cursor prefs=ctx.getContentResolver().query(ALL_PREFS_URI,null,null,null,null);
  if (prefs == null) {
    XposedBridge.log("String_Node_Str");
    return;
  }
  while (prefs.moveToNext()) {
switch (Setting.fromString(prefs.getString(SettingsProvider.QUERY_ALL_KEY))) {
case MOD_ENABLED:
      modEnabled=prefs.getInt(SettingsProvider.QUERY_ALL_VALUE) == SettingsProvider.TRUE;
    continue;
case MMS_RESIZE_ENABLED:
  resizing=prefs.getInt(SettingsProvider.QUERY_ALL_VALUE) == SettingsProvider.TRUE;
continue;
case MMS_ROTATE_ENABLED:
rotation=prefs.getInt(SettingsProvider.QUERY_ALL_VALUE) == SettingsProvider.TRUE;
continue;
case MMS_ROTATE_MODE:
rotateMode=prefs.getInt(SettingsProvider.QUERY_ALL_VALUE);
continue;
case MMS_SCALE_WIDTH:
imageWidth=prefs.getInt(SettingsProvider.QUERY_ALL_VALUE);
continue;
case MMS_SCALE_HEIGHT:
imageHeight=prefs.getInt(SettingsProvider.QUERY_ALL_VALUE);
continue;
case MMS_IMAGE_TYPE:
imageFormat=Setting.ImageFormat.fromInt(prefs.getInt(SettingsProvider.QUERY_ALL_VALUE));
continue;
case MMS_IMAGE_QUALITY:
imageQuality=prefs.getInt(SettingsProvider.QUERY_ALL_VALUE);
continue;
case MMS_APN_SPLICING_ENABLED:
apnSplicing=prefs.getInt(SettingsProvider.QUERY_ALL_VALUE) == SettingsProvider.TRUE;
continue;
case MMS_APN_SPLICING_APN_CONFIG_PRESET:
apnPreset=Setting.ApnPreset.fromInt(prefs.getInt(SettingsProvider.QUERY_ALL_VALUE));
continue;
case MMS_APN_SPLICING_APN_CONFIG_MMSC:
mmsc=prefs.getString(SettingsProvider.QUERY_ALL_VALUE);
continue;
case MMS_APN_SPLICING_APN_CONFIG_PROXY_HOSTNAME:
proxyHost=prefs.getString(SettingsProvider.QUERY_ALL_VALUE);
continue;
case MMS_APN_SPLICING_APN_CONFIG_PROXY_PORT:
proxyPort=prefs.getInt(SettingsProvider.QUERY_ALL_VALUE);
continue;
case UI_ENTER_KEY:
enterKey=Setting.UiEnterKey.fromInt(prefs.getInt(SettingsProvider.QUERY_ALL_VALUE));
continue;
case UI_ATTACH_ANYTIME:
attachAnytime=prefs.getInt(SettingsProvider.QUERY_ALL_VALUE) == SettingsProvider.TRUE;
continue;
case UI_HIDE_CALL_BUTTONS:
hideCallButtons=prefs.getInt(SettingsProvider.QUERY_ALL_VALUE) == SettingsProvider.TRUE;
continue;
case UI_APP_COLOR:
appColor=Setting.AppColor.fromInt(prefs.getInt(SettingsProvider.QUERY_ALL_VALUE));
continue;
case DEBUG:
debug=prefs.getInt(SettingsProvider.QUERY_ALL_VALUE) == SettingsProvider.TRUE;
}
}
prefs.close();
lastReload=SystemClock.elapsedRealtime();
}