We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5836027 commit 835e403Copy full SHA for 835e403
1 file changed
Flickr4Java/src/main/java/com/flickr4java/flickr/photos/Size.java
@@ -260,7 +260,7 @@ public void setWidth(int width) {
260
261
public void setWidth(String width) {
262
263
- if (width != null) {
+ if (!(width == null || "".equals(width))) { // checking both null and empty
264
setWidth(Integer.parseInt(width));
265
}
266
@@ -277,7 +277,7 @@ public void setHeight(int height) {
277
278
public void setHeight(String height) {
279
280
- if (height != null) {
+ if (!(height == null || "".equals(height))) { // checking both null and empty
281
setHeight(Integer.parseInt(height));
282
283
0 commit comments