Buggy code:
public class SchoolDataUtility { String mLoginName = null ; boolean mIsTeacher = false ; public SchoolDataUtility ( String loginName , boolean isTeacher ) { } public SchoolDataUtility ( ) { } public ArrayList < MessageItem > getAllMessages ( Context context ) { } public String getGroupIdForMembers ( Context context , ArrayList < String > members ) { } public JSONArray getGroupMembersIds ( Context context , String group_id ) { String [ ] projection = new String [ ] { "member_ids" , "sender_id" } ; Cursor memCursor = null ; String selection = ( "<seq2seq4repair_space>group_id<seq2seq4repair_space>like<seq2seq4repair_space>'" + group_id ) + "'" ; ArrayList < String > memberStrings = null ; JSONArray toSenderIds = new JSONArray ( ) ; memCursor = context . getContentResolver ( ) . query ( Uri . parse ( ( ( SchoolDataConstants . CONTENT_URI ) + ( SchoolDataConstants . RECEIVED_MESSAGES_ALL ) ) ) , projection , selection , null , null ) ; if ( ( memCursor != null ) && ( ( memCursor . getCount ( ) ) > 0 ) ) { memCursor . moveToFirst ( ) ; String membersString = memCursor . getString ( memCursor . getColumnIndex ( "member_ids" ) ) ; if ( mIsTeacher ) { <START_BUG> memberStrings = new ArrayList < String > ( Arrays . asList ( membersString . split ( "\",\"" ) ) ) ; <END_BUG> } else { memberStrings = new ArrayList < String > ( Arrays . asList ( membersString . split ( "," ) ) ) ; } memberStrings . add ( memCursor . getString ( memCursor . getColumnIndex ( "sender_id" ) ) ) ; int toSenderIdsLength = memberStrings . size ( ) ; for ( int i = 0 ; i < toSenderIdsLength ; i ++ ) { if ( ! ( memberStrings . get ( i ) . equalsIgnoreCase ( mLoginName ) ) ) { toSenderIds . put ( memberStrings . get ( i ) ) ; } } } return toSenderIds ; } public String getGroupMembersNames ( Context context , String group_id ) { } public ArrayList < MessageItem > getChatMessages ( Context context , String sender ) { } public ArrayList < MessageItem > getSavedMessages ( Context context ) { } public ArrayList < MessageItem > getOutboxMessages ( Context context ) { } public ArrayList < MessageItem > getAllNotifications ( Context context ) { } public ArrayList < MessageItem > getSentNotifications ( Context context ) { } public String [ ] getAllAlbumMessages ( Context context ) { } public String [ ] getPendingMessages ( Context context ) { } public String [ ] getPendingAlbum ( Context context ) { } public String getMessage ( Context context , String msgBox , int msgType , String msgId ) { } public ProfileItem getStudentProfileDetails ( Context context ) { } public String [ ] getStudentName ( Context context ) { } public byte [ ] getMemberProfilePic ( Context context ) { } public HashMap < String , String > getClassStudents ( Context context ) { } public String getTeacherNameforStudent ( Context context , String student_Oid ) { } public ArrayList < CustomGallery > getUpdatedImages ( Context context , String displayType ) { } public JSONArray getPendingImagesForAlbum ( Context context ) { } public JSONArray getPendingImages ( Context context ) { } public JSONArray getPendingImagesToDownload ( Context context ) { } public ArrayList < FolderDetails > getAlbumsByDate ( Context context ) { } public ArrayList < CustomGallery > getAlbumImages ( Context context , String albumId ) { } private String getSelectedImageString ( String selectedImagePath ) { } }

Fix:
memberStrings = new ArrayList < String > ( Arrays . asList ( membersString . split ( "," ) ) ) ;