$plugin null value in installPlugin function of PluginManagementHandler class

Unfortunately it’s impossible to install plugin on OCS in our system! I checked code and see $category is null all the time and actually the value of $plugin never is set !!!
so I need to know why $plugin is not initialized? how can I fix the problem?