mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fixed NPE in PyFunctionImpl
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user