We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9851d78 commit 4168145Copy full SHA for 4168145
src/main/java/com/coditory/quark/context/ResolutionPath.java
@@ -46,6 +46,7 @@ private ResolutionPath(@NotNull List<BeanDescriptor<?>> path) {
46
int index = 0;
47
for (BeanDescriptor<?> descriptor : path) {
48
indexes.put(descriptor, index);
49
+ index++;
50
}
51
52
@@ -91,7 +92,7 @@ public BeanDescriptor<?> get(int index) {
91
92
public BeanDescriptor<?> getParent(@NotNull BeanDescriptor<?> descriptor) {
93
expectNonNull(descriptor, "descriptor");
94
Integer index = indexes.get(descriptor);
- return index == null ? null : path.get(index);
95
+ return index == null || index == 0 ? null : path.get(index - 1);
96
97
98
@NotNull
0 commit comments