Fixed a possible NullPointerException and a bug in colour parsing.
Merge pull request #196 from UnknownShadow200/BugFixes2

Fixed a possible NullPointerException and a bug in colour parsing.