MenuItem in EditorWindow

Hi, i created two simple drop-down menu in unity editor.

For “Something1” here’s the code:

[MenuItem("Tools/Something1")]
	private static void showManipulator(){
		EditorWindow.GetWindow<ScriptClassName>(false, "Something1");
	}

“Something1” and “Something2” are in two separate scripts. So for now when i click “Something1” in unity editor a window appears, which is okay. But when i try to apply the same piece of code, but for “Something2” (in other script) the unity quits and crashes.

“Something2” code:

[MenuItem("Tools/Something2")]
	private static void showOther(){
		EditorWindow.GetWindow<ScriptClassNameOtherScript>(false, "Something2"); // if i comment this line out, there is no crash, just "Something2" drop menu
	}

So why is it crashing, shouldn’t it create a pop up editor window just like for “Something1” ?

-Thanks

Are you sure that your second script is named exactly ScriptClassNameOtherScript? Crash could be a result of different name.