You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Andreas Allacher (JIRA)" <ji...@apache.org> on 2012/10/03 14:16:08 UTC

[jira] [Commented] (OFBIZ-4911) very trivial update to fieldlookup.js in case of "null object" failure for wierd unknonw reason

    [ https://issues.apache.org/jira/browse/OFBIZ-4911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13468514#comment-13468514 ] 

Andreas Allacher commented on OFBIZ-4911:
-----------------------------------------

I had the same issue (actually I always have it when I get lookup windows) and from what I can see this issue still exists in the current trunk versions.
It is really a small update (attached here) which makes it working flawless.
I think it should be applied to the repository and backported before the next stable version is released.
Even if the cause might be somewhere else this should still be applied as a safety check.
                
> very trivial update to fieldlookup.js in case of "null object" failure for wierd unknonw reason
> -----------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-4911
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4911
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Leon
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-4911.patch
>
>
> I cannot find the root cause and it's hard to reproduce, but it does happen sometimes. The web browser reports "null object" exception when it tries to evaluate following codes in fieldlookup.js: 
> {quote}
> var obj_caller = (window.opener? window.opener.lookups[num_id]: null);
> {quote}
> window.opener is there but window.opener.lookups is null.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira