diff --git a/build.gradle b/build.gradle index 881df11..8695576 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ plugins { } group 'com.justint' -version '0.3' +version '0.3.1' sourceSets.main.java.srcDirs = ['src/main/gen','src/main/java'] diff --git a/src/main/java/com/justint/usdidea/lang/psi/impl/USDPsiImplUtil.java b/src/main/java/com/justint/usdidea/lang/psi/impl/USDPsiImplUtil.java index 5afd032..4e81f1e 100644 --- a/src/main/java/com/justint/usdidea/lang/psi/impl/USDPsiImplUtil.java +++ b/src/main/java/com/justint/usdidea/lang/psi/impl/USDPsiImplUtil.java @@ -109,9 +109,13 @@ public String getPresentableText() { usdAttributeProperty attributeProperty = propertyElement.getAttributeProperty(); assert attributeProperty != null; usdAttributeType attributeType = attributeProperty.getAttributeType(); - assert attributeType != null; - String propertyType = attributeType.getText(); - return String.format("%s: %s", propertyName, propertyType); + if (attributeType == null) { + return propertyName; + } + else { + String propertyType = attributeType.getText(); + return String.format("%s: %s", propertyName, propertyType); + } } else if (propertyElement.getPropertyType() == USDTypes.RELATIONSHIP_PROPERTY) { return propertyName;