diff --git a/tree/tree/src/TBranchElement.cxx b/tree/tree/src/TBranchElement.cxx
index b04562bcb00e774ffab56c3ff952baa9cc4a31e5..de140665910e38a5e12d3661e66ee142db355dd8 100644
--- a/tree/tree/src/TBranchElement.cxx
+++ b/tree/tree/src/TBranchElement.cxx
@@ -2530,6 +2530,8 @@ void* TBranchElement::GetValuePointer() const
       return 0;
    } else if (fType == 41) {
       return 0;
+   } else if (prID < 0) {
+      return object;
    } else {
       //return GetInfoImp()->GetValue(object,fID,j,-1);
       if (!GetInfoImp() || !object) return 0;