Skip to content

Commit 167e1d8

Browse files
committed
Replace Throwable with SecurityException in ResourceUtil
Autoported commit. Original commit hash: [f5e58abfe] Manual files: io/src/main/java/com/itextpdf/io/util/ResourceUtil.java
1 parent 4996982 commit 167e1d8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

itext.tests/itext.io.tests/itext/io/UtilitiesTest.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,10 @@ public virtual void TestShortener() {
5151
byte[] test = ArrayUtil.ShortenArray(src, 5);
5252
NUnit.Framework.Assert.AreEqual(dest, test);
5353
}
54+
55+
[NUnit.Framework.Test]
56+
public virtual void InvalidResource() {
57+
NUnit.Framework.Assert.IsNull(ResourceUtil.GetResourceStream("some-random-resource.zzz"));
58+
}
5459
}
5560
}

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1e8d544e97defdd0efa8410ced3f438d0f77c255
1+
f5e58abfe5b1b017a9326dc516d1c001d4434fa3

0 commit comments

Comments
 (0)