allow checkIds to be null (i.e. ALL).

This commit is contained in:
asofold 2012-08-07 18:48:57 +02:00
parent 3caa3cd96f
commit 1a0e5f4aa6

View File

@ -279,6 +279,7 @@ public final class NCPHookManager {
* @return
*/
public static Integer addHook(Integer[] checkIds, NCPHook hook){
if (checkIds == null) checkIds = new Integer[]{NCPHookManager.ALL};
Integer hookId = getId(hook);
for (Integer checkId : checkIds){
addToMappings(checkId, hook);