ItEr49S04ValidacionEProbasFuncionaisItEr48S04: [Bug #358] Fixing NullPointerException when percentage checkbox is set in advance type administration.
This commit is contained in:
parent
ffb9761a6f
commit
b59d396f4d
1 changed files with 2 additions and 1 deletions
|
|
@ -189,7 +189,8 @@ public class AdvanceType extends BaseEntity {
|
|||
|
||||
public void setPercentage(boolean percentage) {
|
||||
if (percentage) {
|
||||
if (defaultMaxValue.compareTo(new BigDecimal(100)) > 0) {
|
||||
if ((defaultMaxValue != null)
|
||||
&& (defaultMaxValue.compareTo(new BigDecimal(100)) > 0)) {
|
||||
throw new IllegalArgumentException(
|
||||
"The maximum value for percentage is 100");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue