Skip to content

Commit e4a5c39

Browse files
committed
update error msg
1 parent c6a0974 commit e4a5c39

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/org/logstash/filters/geoip/GeoIPFilter.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ public class GeoIPFilter implements Closeable {
5353
// for more details https://github.com/logstash-plugins/logstash-filter-geoip/issues/226
5454
static class GeoIp2InvalidCustomFieldException extends GeoIp2Exception {
5555
public GeoIp2InvalidCustomFieldException(Throwable cause) {
56-
super(cause.getMessage().equals("Cannot invoke \"Object.getClass()\" because \"parameters[index]\" is null") ?
57-
"The database contains custom fields causing argument type mismatch." :
58-
cause.getMessage(), cause);
56+
super("The database contains custom fields causing argument type mismatch.", cause);
5957
}
6058
}
6159

0 commit comments

Comments
 (0)