Allow ActionFactory to get null-definitions, for instance with missing

config presets.
This commit is contained in:
asofold 2012-10-25 12:04:07 +02:00
parent f5eb4ca16c
commit 2a9e42ea75

View File

@ -70,6 +70,9 @@ public class ActionFactory {
*/
public ActionList createActionList(final String definition, final String permission) {
final ActionList list = new ActionList(permission);
// Do check for null, to allow removing default actions, for better robustness.
if (definition == null) return list;
boolean first = true;