Skip to content

Commit

Permalink
Course Timetabling: Automatic Hierarchical Constraints
Browse files Browse the repository at this point in the history
- fixed a null exception when there is a preference with NULL abbreviation (e.g., neutral)
  • Loading branch information
tomas-muller committed Apr 26, 2017
1 parent afc8321 commit 2cfa52c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3606,7 +3606,7 @@ protected void postAutomaticHierarchicalConstraints(org.hibernate.Session hibSes
pref = p;
constraint = constraint.substring(p.getPrefProlog().length() + 1).trim();
break;
} else if (p.getPrefAbbv() != null && constraint.startsWith(p.getPrefAbbv().toLowerCase() + " ") || constraint.startsWith(p.getPrefAbbv().toLowerCase() + ":")) {
} else if (p.getPrefAbbv() != null && (constraint.startsWith(p.getPrefAbbv().toLowerCase() + " ") || constraint.startsWith(p.getPrefAbbv().toLowerCase() + ":"))) {
pref = p;
constraint = constraint.substring(p.getPrefAbbv().length() + 1).trim();
break;
Expand Down

0 comments on commit 2cfa52c

Please sign in to comment.