Skip to content

Commit 769b221

Browse files
Merge pull request data-integrations#195 from cloudsufi/null-pointer-fix
[PLUGIN-1894] Add handling for Null pointer exception in case of Null response
2 parents 67196a1 + 07ff6fa commit 769b221

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/cdap/plugin/http/common/pagination/BaseHttpPaginationIterator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ protected BasePage getNextPage() {
165165
config.getPaginationType()));
166166
}
167167
LOG.warn(String.format("Fetching from url '%s' returned status code '%d' and body '%s'",
168-
nextPageUrl, httpStatusCode, response.getBody()));
168+
nextPageUrl, httpStatusCode, response == null ? null : response.getBody()));
169169
// this will be handled by PageFactory. Here no handling is needed.
170170
break;
171171
default:

0 commit comments

Comments
 (0)