Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Check for falsey values in urlBarReducer; was seeing "Cannot read pro…
Browse files Browse the repository at this point in the history
…perty 'get' of null" errors during tear off tab after #8782

Auditors: @bridiver
  • Loading branch information
bsclifton committed May 10, 2017
1 parent b2bde3d commit d4ae5a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/renderer/reducers/urlBarReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ const updateSearchEngineInfoFromInput = (state, frameProps) => {
const searchXHR = (state, frameProps, searchOnline) => {
const searchDetail = state.get('searchDetail')
const frameSearchDetail = frameProps.getIn(['navbar', 'urlbar', 'searchDetail'])
if (!searchDetail && !frameSearchDetail) {
return state
}
let autocompleteURL = frameSearchDetail
? frameSearchDetail.get('autocomplete')
: searchDetail.get('autocompleteURL')
Expand Down

0 comments on commit d4ae5a8

Please sign in to comment.