mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-17 18:21:26 +00:00
Enhanced error reporting [ci skip]
This commit is contained in:
@@ -38,7 +38,11 @@ public class ViewControllerLoader {
|
||||
}
|
||||
|
||||
private ViewController constructController(Class<?> clazz) {
|
||||
return controllerProviders.get(clazz).get();
|
||||
Provider<ViewController> ctrlProvider = controllerProviders.get(clazz);
|
||||
if (ctrlProvider == null) {
|
||||
throw new IllegalStateException("No provider for type " + clazz.getName() + " registered.");
|
||||
}
|
||||
return ctrlProvider.get();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user