You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Frank Scholten (JIRA)" <ji...@apache.org> on 2010/06/07 17:11:40 UTC

[jira] Updated: (MAHOUT-410) NPE when calling hasPreferenceValues or getPreferenceValues on newly created FileDataModel

     [ https://issues.apache.org/jira/browse/MAHOUT-410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Frank Scholten updated MAHOUT-410:
----------------------------------

    Attachment: FileDataModel_checkLoaded.patch

Added checkLoaded() calls to methods in FileDataModel. Includes tests.

> NPE when calling hasPreferenceValues or getPreferenceValues on newly created FileDataModel  
> --------------------------------------------------------------------------------------------
>
>                 Key: MAHOUT-410
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-410
>             Project: Mahout
>          Issue Type: Bug
>          Components: Collaborative Filtering
>    Affects Versions: 0.3
>            Reporter: Frank Scholten
>            Priority: Trivial
>         Attachments: FileDataModel_checkLoaded.patch
>
>   Original Estimate: 0.08h
>  Remaining Estimate: 0.08h
>
> An NPE gets thrown when calling hasPreferenceValues() or getPreferenceValue(long userID, long itemID) on a newly created FileDataModel. This happens because these methods do not call checkLoaded() before forwarding the method call to the delegate. Other overridden methods do call checkLoaded(). Seems like a bug.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.