File tree Expand file tree Collapse file tree 4 files changed +7
-4
lines changed
marketplace/release-notes Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1+ Added null checks and synchronizations.
Original file line number Diff line number Diff line change @@ -63,11 +63,11 @@ public abstract static class IterateCallback<T1, T2> {
6363
6464 public abstract void hit (T1 key , T2 value ) throws Exception ;
6565
66- public void exit () {
66+ synchronized public void exit () {
6767 stop = true ;
6868 }
6969
70- public void remove () {
70+ synchronized public void remove () {
7171 mapIter .remove ();
7272 }
7373
Original file line number Diff line number Diff line change @@ -38,8 +38,10 @@ public IMendixObject executeAction() throws Exception
3838 ImageDimensions imageDimensions = new ImageDimensions (getContext ());
3939 try (InputStream inputStream = Core .getImage (getContext (), this .ImageParameter .getMendixObject (), false )) {
4040 BufferedImage bimg = ImageIO .read (inputStream );
41- imageDimensions .setHeight (bimg .getHeight ());
42- imageDimensions .setWidth (bimg .getWidth ());
41+ if (bimg != null ) {
42+ imageDimensions .setHeight (bimg .getHeight ());
43+ imageDimensions .setWidth (bimg .getWidth ());
44+ }
4345 }
4446
4547 return imageDimensions .getMendixObject ();
You can’t perform that action at this time.
0 commit comments