Merge pull request #12 from ngiger/small_fixes

lastError in ch.elexis.util.Log was always uninitialized
NPE fix in HuffmanTree