Fixed NPE in PyFunctionImpl

This commit is contained in:
Andrey Vlasovskikh
2012-02-03 17:03:52 +04:00
parent 81ddd03936
commit 0cfcfe61eb
@@ -362,7 +362,7 @@ public class PyFunctionImpl extends PyPresentableElementImpl<PyFunctionStub> imp
}
StructuredDocString epydocString = StructuredDocString.parse(docString);
return epydocString.getReturnType();
return epydocString != null ? epydocString.getReturnType() : null;
}
private static class ReturnVisitor extends PyRecursiveElementVisitor {