diff --git a/src/tests/NullCharsetTest.java b/src/tests/NullCharsetTest.java index d0233eeb..4a1d37fd 100644 --- a/src/tests/NullCharsetTest.java +++ b/src/tests/NullCharsetTest.java @@ -13,7 +13,7 @@ public void testDirectPathEntry() Path.of("/tmp"); } catch (IllegalArgumentException iae) { - if ("Null charset name".equals(e.getMessage())) + if ("Null charset name".equals(iae.getMessage())) { fail("IllegalArgumentException with 'Null charset name' encountered"); }