pastojs: fixed o as intftype, when o is nil

git-svn-id: trunk@48188 -
(cherry picked from commit 25fd38b2da)
This commit is contained in:
Mattias Gaertner 2021-01-19 09:42:56 +00:00 committed by Florian Klämpfl
parent 1d2ad03167
commit 8c961ad2ea

View File

@ -707,10 +707,9 @@ var rtl = {
},
intfAsIntfT: function (intf,intftype){
if (intf){
var i = rtl.getIntfG(intf.$o,intftype.$guid);
if (i!==null) return i;
}
if (!intf) return null;
var i = rtl.getIntfG(intf.$o,intftype.$guid);
if (i) return i;
rtl.raiseEInvalidCast();
},