Added null check for address host

Signed-off-by: Asharani <asharani.murugesh@in.bosch.com>
This commit is contained in:
Asharani
2016-05-31 17:45:24 +05:30
parent 2a6b531bff
commit c5541b42dc

View File

@@ -56,7 +56,7 @@ public class TargetSearchTextFilter implements FilterExpression {
}
private boolean ipAddressIgnoreCase() {
if (target.getTargetInfo().getAddress() == null) {
if (target.getTargetInfo().getAddress() == null || target.getTargetInfo().getAddress().getHost() == null) {
return false;
}
return target.getTargetInfo().getAddress().getHost().toUpperCase().contains(searchTextUpper);