我以前遇到过这个错误。这通常意味着我正在尝试对空对象使用和方法。所以我投入了支票,但支票似乎不起作用。这是我的代码:
possiblechildSet= MXServer.getMXServer().getMboSet("ASSETANCESTOR", userinfo)
possiblechildSet.setWhere("ANCESTOR='" mbo.getString("ASSETNUM") "' and ASSETNUM !='" mbo.getString("ASSETNUM") "'")
if (possiblechildSet.count() <> 0) or (possiblechildSet.count() is not None) :
childSet= mbo.getMboSet("ASSETMISSINGCHILD")
if childSet.count() is not None:
childMbo = childSet.getMbo(0)
childassetnum = childMbo.getString('ASSETNUM') //error
当我尝试使用 getString 方法时出现错误。这是有效的。我之前在多个脚本中使用过这种方式。我只是不明白它是如何通过我的支票的。任何帮助将不胜感激。谢谢万