Skip to content

Commit 2edd464

Browse files
committed
fixed NPE.
1 parent 6db5678 commit 2edd464

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/ss/editor/plugin/api/property/PropertyDefinition.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public PropertyDefinition(@NotNull final EditablePropertyType propertyType, @Not
123123
this.max = Float.NaN;
124124
this.min = Float.NaN;
125125
this.extension = null;
126-
this.dependencies = null;
126+
this.dependencies = EMPTY_DEPENDENCIES;
127127
}
128128

129129
public PropertyDefinition(@NotNull final EditablePropertyType propertyType, @NotNull final String name,
@@ -137,7 +137,7 @@ public PropertyDefinition(@NotNull final EditablePropertyType propertyType, @Not
137137
this.max = max;
138138
this.options = EMPTY_OPTIONS;
139139
this.extension = null;
140-
this.dependencies = null;
140+
this.dependencies = EMPTY_DEPENDENCIES;
141141
}
142142

143143
/**

0 commit comments

Comments
 (0)