I have encountered this error before. It usually means that I am trying to use and method with an empty object. So I put in checks but the checks do not seem to be working. Here is my code:
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
I am getting the error when i attempt to use the getString method. Which is valid. I have used in this way in multiple scripts before hand. I just don't understand how it is getting through my checks. Any help will be appreciated. Thanks Wann