Skip to content

Commit

Permalink
Fixed potential error on null resource.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Luc Paour committed Jun 4, 2003
1 parent e49c2b2 commit 84037ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion com/gallery/GalleryRemote/PictureInspector.java
Expand Up @@ -236,7 +236,7 @@ public void changedUpdate(DocumentEvent e) {
}

public void textUpdate() {
if (pictures != null) {
if (pictures != null && pictures.length > 0) {
((Picture)pictures[0]).setCaption( caption.getText() );
}
}
Expand Down

0 comments on commit 84037ea

Please sign in to comment.