FIX: add split will throw NPE

This bug is introduced by 4745dea in #228.

This commit is not merged on master yet.