Skip to content

Commit 7201d01

Browse files
authored
Merge pull request #7 from fmlab-iis/afix
Fix unaccessible enum item #6.
2 parents e72e1b4 + c085c32 commit 7201d01

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/PSSInst.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,12 @@ public PSSInst findInstanceUnder(String hierarchy_id) {
171171
public PSSInst findStaticInst(String hierarchiy_id) {
172172
// Currently, find enum items only.
173173
PSSInst res = null;
174-
PSSModel m = getTypeModel();
174+
PSSModel m = null;
175+
PSSInst base = this;
176+
while (m == null && base != null) {
177+
m = base.getTypeModel();
178+
base = base.m_parent;
179+
}
175180
while (m != null) {
176181
res = m.findStaticInst(hierarchiy_id);
177182
if (res != null)

0 commit comments

Comments
 (0)