#747 DefaultBoxAndWhiskerCategoryDataset doesn't follow contracts

1.0.x
closed-fixed
General (896)
5
2007-04-17
2007-04-16
No

In DefaultBoxAndWhiskerCategoryDataset.add() there is

double minval = item.getMinOutlier().doubleValue();
double maxval = item.getMaxOutlier().doubleValue();

where item is a BoxAndWhiskerItem. In the documentation for BoxAndWhiskerItem, the min and max outliers are explicitly allowed to be null (and certainly the code doesn't enforce any sort of checks on them), however this line will crash confusingly if they are null.

Discussion

  • David Gilbert

    David Gilbert - 2007-04-17

    Logged In: YES
    user_id=112975
    Originator: NO

    Thanks for the report. I've committed a fix to CVS for inclusion in the 1.0.6 release.

    Regards,

    Dave Gilbert
    JFreeChart Project Leader

     
  • David Gilbert

    David Gilbert - 2007-04-17
    • labels: --> General
    • milestone: --> 1.0.x
    • assigned_to: nobody --> mungady
    • status: open --> closed-fixed
     
  • David Gilbert

    David Gilbert - 2007-04-17

    Logged In: YES
    user_id=112975
    Originator: NO

    Thanks for the report. I've committed a fix to CVS for inclusion in the 1.0.6 release.

    Regards,

    Dave Gilbert
    JFreeChart Project Leader

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks