Fixed a null-exception on ignorePattern.