I am trying to use script runner to be able to check my scripts for any error/deprecated classes. However for two files simply says that there was an error:
Failed type checking and we don't know why, it's our fault not yours @ line 1, column 1.
Is there any possible reason why the it is doing this. I know for a fact there should be some errors indicating deprecated classes since there are a few calls to component manager in there.
UPDATE: Found the following piece of code that is causing the error
Map tmprc = issue.getCustomFieldValue(rcObj) as Map
if (tmprc) {
// Root Cause Category field defined but ensure both parts of its cascading field are selected
rotCausEntered = ((tmprc.get(null) != null) && (tmprc.get("1") != null))
}
//in particular is is the following bit of code causing the error
(tmprc.get(null) != null)