|
@@ -138,6 +138,9 @@ public abstract class RankStrategyBasic implements RankStrategy {
|
|
}
|
|
}
|
|
|
|
|
|
protected double getGuaranteeWeight(GuaranteeView guaranteeView) {
|
|
protected double getGuaranteeWeight(GuaranteeView guaranteeView) {
|
|
|
|
+ if (guaranteeView == null) {
|
|
|
|
+ return 1.0;
|
|
|
|
+ }
|
|
double guaranteeWeight;
|
|
double guaranteeWeight;
|
|
if (guaranteeView.getGuaranteeNum() == null || guaranteeView.getGuaranteeNum() == 0
|
|
if (guaranteeView.getGuaranteeNum() == null || guaranteeView.getGuaranteeNum() == 0
|
|
|| guaranteeView.getGuaranteeRate() == null || guaranteeView.getGuaranteeRate() == 0.0) {
|
|
|| guaranteeView.getGuaranteeRate() == null || guaranteeView.getGuaranteeRate() == 0.0) {
|