Fix possible null pointer dereferencing and missing initialization
| | |
| | | Severity severity) { |
| | | super(null, null, category, severity, null, null); |
| | | this.formatString = formatString != null ? formatString.toString() : ""; |
| | | this.requiresFormatter = formatString.toString().matches(".*%.*"); |
| | | this.requiresFormatter = this.formatString.matches(".*%.*"); |
| | | } |
| | | |
| | | /** |
| | |
| | | Raw(CharSequence formatString, int mask, Severity severity) { |
| | | super(null, null, mask, severity, null, null); |
| | | this.formatString = formatString != null ? formatString.toString() : ""; |
| | | this.requiresFormatter = this.formatString.matches(".*%.*"); |
| | | } |
| | | |
| | | /** |