[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2937) NullPointException during flush if getSnapshot return null

Gail Badner (JIRA) noreply at atlassian.com
Thu Nov 8 12:50:29 EST 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_28738 ] 

Gail Badner commented on HHH-2937:
----------------------------------

Did you see a NullPointerException actually thrown, or did you just notice that the check was not being done?

If you did see a NullPointerException get thrown, then please attach a runnable test case (Java + mapping) and a complete stacktrace so we can track down why PersistentBag.equalsSnapshot() is being called when the snapshot is null, since this condition could be due to a bug.

> NullPointException during flush if getSnapshot return null
> ----------------------------------------------------------
>
>                 Key: HHH-2937
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2937
>             Project: Hibernate3
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.2.2
>         Environment: Windows
>            Reporter: Emilio Dolce
>
> The method equalsSnapshot of the PersistentBag class do not check if returned snapshot is null causing a NullPointException.
> Please che the next condition with this:
> if ( sn == null || sn.size()!=bag.size() ) return false;

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

        



More information about the hibernate-issues mailing list