This commit is contained in:
insanity 2017-09-27 17:05:50 +09:00
parent 440c9622a4
commit bd23763113

View File

@ -7,7 +7,11 @@ export class ServiceInvoker {
}
public invoke(className: string, methodName: string, params?: any): void {
let classObj: Object = this.configMap[className];
let classObj: Object = this.configMap.get(className);
if (classObj === null) {
console.log('Error: Cannot find the class. [' + className + ']');
return;
}
if (!classObj.hasOwnProperty(methodName)) {
console.log('Error: Cannot find the method. [' + methodName + ']');
return;