Skip to content

Commit 6cd4ebc

Browse files
authored
Fix EqualsAvoidNull error in NLFPlugin.syslogMessage (#80)
1 parent 0208d64 commit 6cd4ebc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/teragrep/nlf_01/NLFPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ else if (
187187
&& jsonObject.get("category").getValueType().equals(JsonValue.ValueType.STRING)
188188
) {
189189
final String category = jsonObject.getString("category");
190-
if (category.equals("SQLSecurityAuditEvents")) {
190+
if ("SQLSecurityAuditEvents".equals(category)) {
191191
eventTypes.add(new SQLSecurityAuditEventsType(parsedEvent, realHostname, componentNameForPartitions));
192192
}
193193
}

0 commit comments

Comments
 (0)