Issue #80: Fixed static algorithm NPE.