r824 - trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/frequency
Author: kmorin Date: 2013-04-18 18:00:29 +0200 (Thu, 18 Apr 2013) New Revision: 824 Url: http://forge.codelutin.com/projects/tutti/repository/revisions/824 Log: fixes #2332 [CAPTURES] - Mensurations - d?\195?\169clenchement d'une erreur quand on ne met pas de classe de taille sur une ligne Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/frequency/SpeciesFrequencyTableModel.java Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/frequency/SpeciesFrequencyTableModel.java =================================================================== --- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/frequency/SpeciesFrequencyTableModel.java 2013-04-18 15:47:15 UTC (rev 823) +++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/frequency/SpeciesFrequencyTableModel.java 2013-04-18 16:00:29 UTC (rev 824) @@ -130,14 +130,13 @@ // add new row to cache Float lengthStep = newValue.getLengthStep(); - Preconditions.checkNotNull(lengthStep, - "can't add a null lengthStep row"); + if (lengthStep != null) { + float roundLenghtValue = uiModel.getLengthStep(lengthStep); - float roundLenghtValue = uiModel.getLengthStep(lengthStep); + if (!rowCache.containsKey(roundLenghtValue)) { - if (!rowCache.containsKey(roundLenghtValue)) { - - rowCache.put(roundLenghtValue, newValue); + rowCache.put(roundLenghtValue, newValue); + } } } } \ No newline at end of file
participants (1)
-
kmorin@users.forge.codelutin.com