mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE fixed.
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
|
||||
package com.intellij.openapi.module;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author yole
|
||||
*/
|
||||
@@ -23,7 +25,7 @@ public class ModuleServiceManager {
|
||||
private ModuleServiceManager() {
|
||||
}
|
||||
|
||||
public static <T> T getService(Module module, Class<T> serviceClass) {
|
||||
public static <T> T getService(@NotNull Module module, @NotNull Class<T> serviceClass) {
|
||||
return (T)module.getPicoContainer().getComponentInstance(serviceClass.getName());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user