[jbosstools-issues] [JBoss JIRA] (JBIDE-9827) NPE occurs when edit big page

Denis Maliarevich (Commented) (JIRA) jira-events at lists.jboss.org
Wed Oct 5 09:44:16 EDT 2011


    [ https://issues.jboss.org/browse/JBIDE-9827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632477#comment-12632477 ] 

Denis Maliarevich commented on JBIDE-9827:
------------------------------------------

1) For instance, you are changing a tag name from "h:form" to "h:form1". It causes "h:form" source node to be deleted from the source DOM tree. Then "h:form1" source node with all its children will be created in the source DOM model. 
2) Then you change "h:form1" to "h:form12" -- the same steps from point 1) will be performed once again. And in the same way for every new text change in the tag's name.
3) After the source has been changed -- visual part has to be updated. For that reason there is notifyChanged(..) method in VpeController which runs "VPE_UPDATE_JOB_TITLE" UIJob. For every text change new Job will be created.
4) All these jobs are put into a queue.
5) After a number of queued jobs there is a situation when current job creates "h:form1" node but it has been already removed by "h:form12" change. Thus "h:form1" is no longer presents in the dom (in our case null is passed when children of "h:form1" supposed to be created).
6) If you continue text changes by typing "h:form12abc" -- several nulls will appear.

I hope I wrote not too complex.
                
> NPE occurs when edit big page 
> ------------------------------
>
>                 Key: JBIDE-9827
>                 URL: https://issues.jboss.org/browse/JBIDE-9827
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Visual Page Editor core
>    Affects Versions: 3.3.0.M3
>            Reporter: Maxim Areshkau
>            Assignee: Denis Maliarevich
>             Fix For: 3.3.0.M4
>
>         Attachments: JBIDE-9827.diff, npe.png, npe.txt
>
>
> NPE occurs when edit big page.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list