Fixed possible NullPointerException when encountering unknown device
tyes.
Merge pull request #5 from dereulenspiegel/maxcube

Fixed possible NullPointerException when encountering unknown device