Program: 94098
Project: 94098
Buggy source:
@Override public void handleInitPackageResources(InitPackageResourcesParam resparam) throws Throwable {
  try {
    if (!resparam.packageName.equals(Common.PACKAGE_SNAP))     return;
    Object activityThread=callStaticMethod(findClass("String_Node_Str",null),"String_Node_Str");
    Context localContext=(Context)callMethod(activityThread,"String_Node_Str");
    int name=R.id.name;
    int checkBox=R.id.checkBox;
    int friend_item=R.layout.friend_item;
    int group_item=R.layout.group_item;
    modRes=XModuleResources.createInstance(MODULE_PATH,resparam.res);
    FriendListDialog.name=XResources.getFakeResId(modRes,name);
    resparam.res.setReplacement(FriendListDialog.name,modRes.fwd(name));
    FriendListDialog.checkBox=XResources.getFakeResId(modRes,checkBox);
    resparam.res.setReplacement(FriendListDialog.checkBox,modRes.fwd(checkBox));
    FriendListDialog.friend_item=XResources.getFakeResId(modRes,checkBox);
    resparam.res.setReplacement(FriendListDialog.friend_item,modRes.fwd(friend_item));
    GroupDialog.group_item=XResources.getFakeResId(modRes,group_item);
    resparam.res.setReplacement(GroupDialog.group_item,modRes.fwd(group_item));
    Logger.log("String_Node_Str");
    try {
      if (Preferences.getMap() == null || Preferences.getMap().isEmpty()) {
        Logger.log("String_Node_Str");
        Preferences.loadMapFromXposed();
      }
    }
 catch (    Exception e) {
      Log.e("String_Node_Str","String_Node_Str");
      e.printStackTrace();
    }
    resParam=resparam;
    HookedLayouts.addSaveButtonsAndGestures(resparam,mResources,localContext);
    if (Preferences.shouldAddGhost()) {
      HookedLayouts.addIcons(resparam,mResources);
    }
    if (Preferences.getBool(Prefs.INTEGRATION)) {
      HookedLayouts.addShareIcon(resparam);
    }
    if (Preferences.getBool(Prefs.HIDE_PEOPLE)) {
      Stories.addSnapprefsBtn(resparam,mResources);
    }
    HookedLayouts.fullScreenFilter(resparam);
  }
 catch (  Exception e) {
    Logger.log("String_Node_Str",e);
  }
}

Fixed version (ground truth):
@Override public void handleInitPackageResources(InitPackageResourcesParam resparam) throws Throwable {
  try {
    if (!resparam.packageName.equals(Common.PACKAGE_SNAP))     return;
    Object activityThread=callStaticMethod(findClass("String_Node_Str",null),"String_Node_Str");
    Context localContext=(Context)callMethod(activityThread,"String_Node_Str");
    int name=R.id.name;
    int checkBox=R.id.checkBox;
    int friend_item=R.layout.friend_item;
    int group_item=R.layout.group_item;
    modRes=XModuleResources.createInstance(MODULE_PATH,resparam.res);
    FriendListDialog.name=XResources.getFakeResId(modRes,name);
    resparam.res.setReplacement(FriendListDialog.name,modRes.fwd(name));
    FriendListDialog.checkBox=XResources.getFakeResId(modRes,checkBox);
    resparam.res.setReplacement(FriendListDialog.checkBox,modRes.fwd(checkBox));
    FriendListDialog.friend_item=XResources.getFakeResId(modRes,checkBox);
    resparam.res.setReplacement(FriendListDialog.friend_item,modRes.fwd(friend_item));
    GroupDialog.group_item=XResources.getFakeResId(modRes,group_item);
    resparam.res.setReplacement(GroupDialog.group_item,modRes.fwd(group_item));
    Logger.log("String_Node_Str");
    try {
      if (Preferences.getMap() == null || Preferences.getMap().isEmpty()) {
        Logger.log("String_Node_Str");
        Preferences.loadMapFromXposed();
      }
    }
 catch (    Exception e) {
      Log.e("String_Node_Str","String_Node_Str");
      e.printStackTrace();
    }
    resParam=resparam;
    try {
      HookedLayouts.addSaveButtonsAndGestures(resparam,mResources,localContext);
    }
 catch (    Throwable t) {
      Logger.log(t);
    }
    if (Preferences.shouldAddGhost()) {
      HookedLayouts.addIcons(resparam,mResources);
    }
    if (Preferences.getBool(Prefs.INTEGRATION)) {
      HookedLayouts.addShareIcon(resparam);
    }
    if (Preferences.getBool(Prefs.HIDE_PEOPLE)) {
      Stories.addSnapprefsBtn(resparam,mResources);
    }
    HookedLayouts.fullScreenFilter(resparam);
  }
 catch (  Exception e) {
    Logger.log("String_Node_Str",e);
  }
}