LPS-44269 Fix import of priorities
LPS-44269 Fix possible NPE