Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

FIX: RHMAP-19268 - Client gets null pointer exception when connection tag is disabled #257

Merged
merged 3 commits into from
Feb 1, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog - FeedHenry Javascript SDK

## 2.24.1 - 2018-02-01
* FIX: RHMAP-19268 - Client gets null pointer exception when connection tag is disabled and the app is running localy

## 2.24.0 - 2018-01-25
* Added `headers` parameter to CloudOptions

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fh-js-sdk",
"version": "2.19.0",
"version": "2.24.1",
"homepage": "https://github.com/feedhenry/fh-js-sdk",
"authors": [
"[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fh-js-sdk",
"version": "2.24.0",
"version": "2.24.1",
"description": "feedhenry js sdk",
"main": "dist/feedhenry.js",
"types": "./fh-js-sdk.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/modules/initializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ var loadCloudProps = function(app_props, callback) {
}
logger.error("App init returned error : " + errormsg);
//use the cached host if we have a copy
if (savedHost && req.status !== 400) {
if (savedHost && (!req || req.status !== 400)) {
logger.info("Using cached host: " + JSON.stringify(savedHost));
if (callback) {
callback(null, {
cloud: savedHost
});
}
} else {
if (req.status === 400) {
if (req && req.status === 400) {
logger.error(req.responseText);
} else {
logger.error("No cached host found. Init failed.");
Expand Down