Also, I prefer to use a variable initialized with a numeric value to receive the return value from the GetObject method on its own line and on the next line, use an IF...THEN to check if the variable's value is greater than 0, if yes, you can then pass the numeric variable to the AsObject method when setting the object handle to a variable, if not greater than 0, then the object handle could not be returned, you can check the oSession.LastErrorMsg to try to find out why.
```
nProdLineBus = 0 : nProdLineBus = oSession.GetObject(""IM_ProductLine_bus"")
If nProdLineBus > 0 Then
Set oProdLineBus = oSession.AsObject(nProdLineBus)
' Execute code here
Set oProdLineBus = Nothing
Else
oScript.DebugPrint ""Unable to get object handle: "" & oSession.LastErrorMsg
End If
```