aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/anthonyhilyard/iceberg/renderer/CheckedBufferSource.java
diff options
context:
space:
mode:
authorAnthony Hilyard <anthony.hilyard@gmail.com>2023-04-20 14:47:14 -0700
committerAnthony Hilyard <anthony.hilyard@gmail.com>2023-04-20 14:47:14 -0700
commit17083f07fc0a464d520c1b233676ebe7bdc8fa2f (patch)
tree8b5f7d7c54edb696ff7563dd5609e6b262a5f683 /src/main/java/com/anthonyhilyard/iceberg/renderer/CheckedBufferSource.java
parentb35061a82bed88966b6efdab39fc3c5b11cb0267 (diff)
downloadIceberg-17083f07fc0a464d520c1b233676ebe7bdc8fa2f.tar.gz
Iceberg-17083f07fc0a464d520c1b233676ebe7bdc8fa2f.tar.bz2
Iceberg-17083f07fc0a464d520c1b233676ebe7bdc8fa2f.zip
Fixed a potential crash in the CustomItemRenderer.
Diffstat (limited to 'src/main/java/com/anthonyhilyard/iceberg/renderer/CheckedBufferSource.java')
-rw-r--r--src/main/java/com/anthonyhilyard/iceberg/renderer/CheckedBufferSource.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/anthonyhilyard/iceberg/renderer/CheckedBufferSource.java b/src/main/java/com/anthonyhilyard/iceberg/renderer/CheckedBufferSource.java
index 706fd9c..2140178 100644
--- a/src/main/java/com/anthonyhilyard/iceberg/renderer/CheckedBufferSource.java
+++ b/src/main/java/com/anthonyhilyard/iceberg/renderer/CheckedBufferSource.java
@@ -37,7 +37,7 @@ public class CheckedBufferSource implements MultiBufferSource
}
}
- if (useSodiumVersion)
+ if (useSodiumVersion != null && useSodiumVersion)
{
// Instantiate the Sodium implementation using reflection.
try