Commit c29b0df0 authored by Bruno Nocera Zanette's avatar Bruno Nocera Zanette

Added null verification to avoid NullPointer

Added null verification to avoid NullPointer.
Signed-off-by: Bruno Nocera Zanette's avatarBruno Nocera Zanette <brunonzanette@gmail.com>
parent a8dc0d69
......@@ -223,10 +223,16 @@ public class PermissionProvider {
SectionPos sp = SectionPos.findSectioPosOfTranscriptId(id);
if ( sp == null
|| currentYear == null
|| currentPeriod == null
|| modificationPeriodIsOpen == null)
return false;
if ( modificationPeriodIsOpen.equals("true")
& sp.getPeriod().equals(currentPeriod)
& sp.getSectionYear().equals(currentYear)
) return true;
&& sp.getPeriod().equals(currentPeriod)
&& sp.getSectionYear().equals(currentYear))
return true;
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment