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 c57b627 commit 459a318Copy full SHA for 459a318
src/main/java/org/apache/commons/jxpath/ri/model/VariablePointer.java
@@ -251,11 +251,7 @@ public Object getImmediateNode() {
251
public NodePointer getImmediateValuePointer() {
252
if (valuePointer == null) {
253
Object value;
254
- if (actual) {
255
- value = getImmediateNode();
256
- valuePointer = newChildNodePointer(this, null, value);
257
- }
258
- else {
+ if (!actual) {
259
return new NullPointer(this, getName()) {
260
private static final long serialVersionUID = 1L;
261
@@ -266,6 +262,8 @@ public Object getImmediateNode() {
266
262
}
267
263
};
268
264
265
+ value = getImmediateNode();
+ valuePointer = newChildNodePointer(this, null, value);
269
270
return valuePointer;
271
0 commit comments