Fixed a null-exception on ignorePattern.
Merge pull request #442 from poucet/bugfix

Fixed a null-exception on ignorePattern.