Project

General

Profile

Bug #2380

Updated by Greg Shah almost 10 years ago

The following sample causes an NPE when run converted in P2J:

<pre>
DEFINE FRAME f WITH SIZE 80 BY 15.
DEFINE VARIABLE e AS HANDLE.
CREATE EDITOR e assign
FRAME = FRAME f:HANDLE
VISIBLE = true.
</pre>

When @VISIBLE@ set after the @CREATE@ statement, the program works:

<pre>
DEFINE FRAME f WITH SIZE 80 BY 15.
DEFINE VARIABLE e AS HANDLE.
CREATE EDITOR e assign
FRAME = FRAME f:HANDLE
VISIBLE = false.
e:VISIBLE - true.
</pre>

Back