David E Jones wrote:
On Oct 29, 2007, at 11:47 AM, Jacopo Cappellato wrote:
the bug is fixed in rev. 589769
It was caused by old code not working well after the very recent
framework updates.
I looked at your commit on this and am wondering what the framework
update was that caused this problem, mainly because it might cause
similar problems in other places... It might be something we want to add
some code to in order to keep it backward compatible.
-David
The offending instructions were in the screen action:
<set field="lastFinishedJob" from-field="mrpFinishedJobs[0]"/>
<set field="lastFinishedJobs[]" from-field="lastFinishedJob"/>
If mrpFinishedJobs is empty or null then also lastFinishedJob is null
and so in the second line a null value is inserted into the list.
In the old framework this seemed to work fine: the lastFinishedJobs list
was empty and so no rows were shown in the list form.
In the new framework, I guess, lastFinishedJobs was filled with a null
object and this was causing a NPE...
Does it make sense?
However it is easy to recreate...
Jacopo