diff --git a/property-loader/src/test/java/com/github/weisj/darklaf/icons/DerivableImageIconTest.java b/property-loader/src/test/java/com/github/weisj/darklaf/icons/DerivableImageIconTest.java index 78d25dd0..3b8f0158 100644 --- a/property-loader/src/test/java/com/github/weisj/darklaf/icons/DerivableImageIconTest.java +++ b/property-loader/src/test/java/com/github/weisj/darklaf/icons/DerivableImageIconTest.java @@ -47,7 +47,8 @@ public class DerivableImageIconTest { imageSet.clear(); icon = icon.derive(50, 50); for (int i = 0; i < 100; i++) { - imageSet.add(icon.derive(50, 50).getImage()); + icon = icon.derive(50, 50); + imageSet.add(icon.getImage()); } Assertions.assertEquals(1, imageSet.size()); }