Null object reference access

This run-time error is reported when a null object reference is accessed. If a null reference can occur, you should always test for it before accessing the object using the reference. Example:

class Test {
  func doSomething()
  endfunc
}
Test t
t.doSomething()    ; Error: t is null reference!
if t
  t.doSomething()  ; OK, because skipped
endif
t = new Test
t.doSomething()    ; OK

See Also
Objects
Errors