Skip to content

Commit

Permalink
Fixed stupid NPE when no extra field has been set.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Luc Paour committed Jun 26, 2003
1 parent 0f399b1 commit b8c2eea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion com/gallery/GalleryRemote/GalleryComm2.java
Expand Up @@ -501,7 +501,7 @@ boolean uploadPicture(Picture p) {
};

// set up extra fields
if (p.getExtraFieldsMap().size() > 0) {
if (p.getExtraFieldsMap() != null && p.getExtraFieldsMap().size() > 0) {
ArrayList optsList = new ArrayList(Arrays.asList(opts));

Iterator it = p.getExtraFieldsMap().keySet().iterator();
Expand Down

0 comments on commit b8c2eea

Please sign in to comment.