mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

ludovicp
29.20.2008 f4599e9caf16e855202490b72e3846d01537d195
Fix possible null pointer dereferencing and missing initialization
1 files modified
3 ■■■■ changed files
opends/src/messages/src/org/opends/messages/MessageDescriptor.java 3 ●●●● patch | view | raw | blame | history
opends/src/messages/src/org/opends/messages/MessageDescriptor.java
@@ -996,7 +996,7 @@
                                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(".*%.*");
    }
    /**
@@ -1009,6 +1009,7 @@
    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(".*%.*");
    }
    /**