fix: NPE when using KernelManagers (fixes
@@ -26,21 +26,17 @@ public class KernelManagers {
public static final KernelManager JTP_ONLY = new KernelManager() {
- private List<Device.TYPE> types = Collections.singletonList(Device.TYPE.JTP);
-
@Override
protected List<Device.TYPE> getPreferredDeviceTypes() {
- return types;
+ return Collections.singletonList(Device.TYPE.JTP);
}
};
public static final KernelManager SEQUENTIAL_ONLY = new KernelManager() {
- private final List<Device.TYPE> types = Collections.singletonList(Device.TYPE.SEQ);
-
@Override
protected List<Device.TYPE> getPreferredDeviceTypes() {
- return types;
+ return Collections.singletonList(Device.TYPE.SEQ);
}
};
}
