[jboss-jira] [JBoss JIRA] Commented: (JBFORUMS-198) when I delete an user I have NullPointerException

Ryszard Kozmik (JIRA) jira-events at lists.jboss.org
Sat Apr 21 13:37:30 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBFORUMS-198?page=comments#action_12360135 ] 
            
Ryszard Kozmik commented on JBFORUMS-198:
-----------------------------------------

No problem. You can do mistakes like that whenever you want just don't slow down with your debugging and contributorship ;-).
If it comes to this UserNA, it is not correct. However, I asked my teammate to do this task and as you can see from the SubversionCommits he already propagated fix for almost all versions of Portal. Try it, should work. 

> when I delete an user I have NullPointerException
> -------------------------------------------------
>
>                 Key: JBFORUMS-198
>                 URL: http://jira.jboss.com/jira/browse/JBFORUMS-198
>             Project: JBoss Forums
>          Issue Type: Bug
>          Components: Forum View Layer, Forum Model Layer
>         Environment: any
>            Reporter: Luca Stancapiano
>         Assigned To: Ryszard Kozmik
>             Fix For: 1.0.0 GA, 1.0.1 RC
>
>         Attachments: patch.tar.gz
>
>          Time Spent: 2 days
>
> hi julien.......I tried to delete an user that is in posts of jboss forum.....after I deleted this user, if I click on posts where that user had posted I have NullPointerException
> I thought to correct this bug , using a UserNA object that implements User interface. This UserNA is used when I select the user from database and I haven't returned rows because user is deleted. In this case I add UserNA to User object of Post object. UserNA is declared in ForumPortlet object as final static , so the same object can to be used for each deleted user. What do you mean about it? I send you the patch 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list