diff --git a/SwerveRoboticsLibrary/src/main/java/org/swerverobotics/library/internal/Util.java b/SwerveRoboticsLibrary/src/main/java/org/swerverobotics/library/internal/Util.java
index 62776b0c6f4..1aa00afc564 100644
--- a/SwerveRoboticsLibrary/src/main/java/org/swerverobotics/library/internal/Util.java
+++ b/SwerveRoboticsLibrary/src/main/java/org/swerverobotics/library/internal/Util.java
@@ -185,7 +185,7 @@ static List<Method> getDeclaredMethods(Class<?> clazz)
         try {
             methods = clazz.getDeclaredMethods();
             }
-        catch (Exception e)
+        catch (Exception|LinkageError e)
             {
             methods = new Method[0];
             }