diff --git a/contribs/simwrapper/src/main/java/org/matsim/simwrapper/SimWrapperListener.java b/contribs/simwrapper/src/main/java/org/matsim/simwrapper/SimWrapperListener.java index d672a774df6..2b056c444c3 100644 --- a/contribs/simwrapper/src/main/java/org/matsim/simwrapper/SimWrapperListener.java +++ b/contribs/simwrapper/src/main/java/org/matsim/simwrapper/SimWrapperListener.java @@ -109,7 +109,7 @@ private List loadProvider(ImmutableSet c List result = new ArrayList<>(); for (ClassPath.ClassInfo info : classes) { Class clazz = info.load(); - if (clazz.isAssignableFrom(DashboardProvider.class)) { + if (DashboardProvider.class.isAssignableFrom(clazz)) { try { Constructor c = clazz.getDeclaredConstructor(); DashboardProvider o = (DashboardProvider) c.newInstance();