Buggy code:
public class PictureController extends Tab implements Initializable { private static final int AVATAR_SIZE = 50 ; private static final int MAX_TITLE_LENGTH = 65 ; private final MainController app ; private Picture picture ; private ScrollPane ihm ; private VBox content ; private ImageView avatarImg ; private Text shareTxt ; private TextArea pictureName ; private Button refreshBtn ; private ImageView pictureImg ; private Text noteTitle ; private HBox noteImg ; private Text voteTxt ; private TextField voteField ; private Button voteBtn ; private Button savePictureBtn ; private Button rulesBtn ; private Text tagsTitle ; private Text tagsTxt ; private Text descTitle ; private Text descTxt ; private Text comTitle ; private List < PictureController . CommentPane > comments ; private TextArea writeArea ; private Button sendBtn ; private Button descEditBtn ; private Button validateDescBtn ; private TextArea editDescTxt ; private Button tagsEditBtn ; private TextField tagsEditTxt ; private Button tagsValidateBtn ; private Integer currentRequestId ; public PictureController ( final Picture pic , final MainController application ) { } private static void setImage ( final ImageView img , final Image source , final int fitWidth , final int fitHeight ) { } @ Override public void initialize ( final URL url , final ResourceBundle resourceBundle ) { } public void build ( ) { } private void addContent ( ) { } private void savePictureLocally ( ) { } private void buildVotes ( ) { } private void buildTags ( ) { final StringBuilder sbTags = new StringBuilder ( ) ; for ( Tag tag : picture . getListTags ( ) ) { sbTags . append ( tag . getValue ( ) ) ; sbTags . append ( ",<seq2seq4repair_space>" ) ; } if ( ( sbTags . length ( ) ) > 2 ) { sbTags . setLength ( ( ( sbTags . length ( ) ) - 2 ) ) ; } tagsTxt . setText ( sbTags . toString ( ) ) ; <START_BUG> if ( picture . getUser ( ) . getLogin ( ) . equals ( app . currentUser ( ) . getLogin ( ) ) ) { <END_BUG> tagsEditTxt . setText ( sbTags . toString ( ) ) ; tagsEditBtn . setOnMouseClicked ( new EventHandler < MouseEvent > ( ) { @ Override public void handle ( final MouseEvent mouseEvent ) { editTags ( mouseEvent ) ; } } ) ; } } private void addCssClasses ( ) { } public void launchRules ( ) { } private void refreshAllComponents ( ) { } public void receiveFullImage ( final Picture pic ) { } private void comment ( final MouseEvent mouseEvent ) { } private void vote ( final MouseEvent mouseEvent ) { } private void addNote ( final Note note ) { } private void editTags ( final MouseEvent mouseEvent ) { } private void editDescription ( final MouseEvent mouseEvent ) { } private void deleteComment ( final PictureController . CommentPane cp ) { } private class CommentPane extends HBox { private Comment comment ; private ImageView avatarImg ; private Text userTxt ; private Button editBtn ; private Button delBtn ; private Text commentTxt ; private VBox vb ; private TextField commentField ; public CommentPane ( final Comment com ) { } public void build ( ) { } private void switchEditionMode ( final boolean edition ) { } private void addContent ( ) { } } }

Fix:
if ( picture . getUser ( ) . getUid ( ) . equals ( app . currentUser ( ) . getUid ( ) ) ) {