diff --git a/java/ql/lib/semmle/code/java/dataflow/internal/DataFlowImpl.qll b/java/ql/lib/semmle/code/java/dataflow/internal/DataFlowImpl.qll index 7fe616e1b60..5d0dad5cf32 100644 --- a/java/ql/lib/semmle/code/java/dataflow/internal/DataFlowImpl.qll +++ b/java/ql/lib/semmle/code/java/dataflow/internal/DataFlowImpl.qll @@ -3077,9 +3077,7 @@ module Impl { private string ppType() { this instanceof PathNodeSink and result = "" or - this.(PathNodeMid).getAp() instanceof AccessPathNil and result = "" - or - exists(DataFlowType t | t = this.(PathNodeMid).getAp().getHead().getContainerType() | + exists(DataFlowType t | t = this.(PathNodeMid).getType() | // The `concat` becomes "" if `ppReprType` has no result. result = concat(" : " + ppReprType(t)) )