Skip to content

Commit bf593bc

Browse files
committed
minor change in GifEncoder
1 parent b96fb7d commit bf593bc

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

sources/net.sf.j2s.java.core/src/javajs/img/GifEncoder.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,9 @@ protected void setParams(Map<String, Object> params) {
152152
return;
153153
interlaced = false;
154154
capturing = true;
155-
try {
156-
byteCount = ((Integer) params.get("captureByteCount")).intValue();
157-
} catch (Exception e) {
158-
// ignore
159-
}
155+
Integer c = (Integer) params.get("captureByteCount");
156+
if (c != null)
157+
byteCount = c.intValue();
160158
switch ("maec"
161159
.indexOf(((String) params.get("captureMode")).substring(0, 1))) {
162160
case 0: //"movie"

0 commit comments

Comments
 (0)