mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE (PY-4303)
This commit is contained in:
@@ -44,7 +44,8 @@ public class PyElementNode extends BasePsiNode<PyElement> {
|
||||
@Override
|
||||
protected void updateImpl(PresentationData data) {
|
||||
PyElement value = getValue();
|
||||
StringBuilder presentableText = new StringBuilder(value.getName());
|
||||
final String name = value.getName();
|
||||
StringBuilder presentableText = new StringBuilder(name != null ? name : "<unnamed>");
|
||||
if (value instanceof PyFunction) {
|
||||
presentableText.append(((PyFunction) value).getParameterList().getPresentableText(false));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user