In my PowerBuilder application, the following code segment causes an R0002 error at runtime (a null object is being referenced):
Window w = windows[idx]
IF NOT IsNull( w ) THEN
MessageBox( "", "ClassName is " + w.GetClassName() ) // This line crashes
END IF
Does anybody know why that is? I was under the impression that IsNull() is specifically meant to test for null values.