[rules-users] BEST_FIT Null Pointer Exception

newbie dspecialist18 at yahoo.com
Mon Nov 25 15:51:43 EST 2013


I am currently using final 6.0 and I used
<constructionHeuristicType>BEST_FIT</constructionHeuristicType> but after I
have run it propmts java.lang.NullPointerException pointing to my
PlanningVariableStrengComparator. Did I miss something? My planning variable
comparator by the way is : 

public class MyVariableStrengthComparator implements Comparator<MyVariable>,
Serializable {

    public int compare(MyVariable a, MyVariable b) {
        return new CompareToBuilder()
                .append(a.getId(), b.getId())
                .toComparison();
    }

}



--
View this message in context: http://drools.46999.n3.nabble.com/BEST-FIT-Null-Pointer-Exception-tp4026935.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list