firefox error
Reported by @nils.christian
On Firefox 54.0.1 (64-bit) on macOS, I somehow managed to trigger the
error Unexpected error occured: searchResult[0] is undefined
(see
attachment), when visiting https://minerva-dev.lcsb.uni.lu/minerva/ (no
map selected). It even persists when I fully reload (Cmd-Shift-R) the page.
minerva.js.xhtml?ln=js&m_version=9966b070f85b9307486363a8ab38da2ed9de1f09:45432 [31m[2017-07-19 11:26:06.570] [ERROR] [default] - [39m[TypeError: Cannot read property 'length' of undefined]
TypeError: Cannot read property 'length' of undefined
at SearchDbOverlay.getElementsByQuery (https://minerva-dev.lcsb.uni.lu/minerva/javax.faces.resource/minerva.js.xhtml?ln=js&m_version=9966b070f85b9307486363a8ab38da2ed9de1f09:130292:27)
at GenericSearchPanel.AbstractPanel.refreshSearchResults (https://minerva-dev.lcsb.uni.lu/minerva/javax.faces.resource/minerva.js.xhtml?ln=js&m_version=9966b070f85b9307486363a8ab38da2ed9de1f09:120522:28)
at Array.<anonymous> (https://minerva-dev.lcsb.uni.lu/minerva/javax.faces.resource/minerva.js.xhtml?ln=js&m_version=9966b070f85b9307486363a8ab38da2ed9de1f09:120405:17)
at SearchDbOverlay.ObjectWithListeners.callListeners (https://minerva-dev.lcsb.uni.lu/minerva/javax.faces.resource/minerva.js.xhtml?ln=js&m_version=9966b070f85b9307486363a8ab38da2ed9de1f09:116505:36)
at https://minerva-dev.lcsb.uni.lu/minerva/javax.faces.resource/minerva.js.xhtml?ln=js&m_version=9966b070f85b9307486363a8ab38da2ed9de1f09:130418:19
at <anonymous>
From previous event:
at SearchDbOverlay.searchByCoordinates (https://minerva-dev.lcsb.uni.lu/minerva/javax.faces.resource/minerva.js.xhtml?ln=js&m_version=9966b070f85b9307486363a8ab38da2ed9de1f09:130412:8)
at tg.<anonymous> (https://minerva-dev.lcsb.uni.lu/minerva/javax.faces.resource/minerva.js.xhtml?ln=js&m_version=9966b070f85b9307486363a8ab38da2ed9de1f09:123499:21)
at Object._.z.trigger (https://maps.google.com/maps/api/js?libraries=drawing&v=3.26:104:121)
at _.ww._.k.pe (https://maps.google.com/maps-api-v3/api/js/27/14/common.js:235:342)
at _.ww._.k.Yi (https://maps.google.com/maps-api-v3/api/js/27/14/common.js:234:246)
at Object._.z.trigger (https://maps.google.com/maps/api/js?libraries=drawing&v=3.26:104:121)
at $t.<anonymous> (https://maps.google.com/maps-api-v3/api/js/27/14/common.js:127:342)
at Object._.z.trigger (https://maps.google.com/maps/api/js?libraries=drawing&v=3.26:104:121)
at $t._.k.lj (https://maps.google.com/maps-api-v3/api/js/27/14/common.js:201:446)
at HTMLDivElement.<anonymous> (https://maps.google.com/maps/api/js?libraries=drawing&v=3.26:35:388)
minerva.js.xhtml?ln=js&m_version=9966b070f85b9307486363a8ab38da2ed9de1f09:13400 Unhandled rejection TypeError: Cannot read property 'length' of undefined
at https://minerva-dev.lcsb.uni.lu/minerva/javax.faces.resource/minerva.js.xhtml?ln=js&m_version=9966b070f85b9307486363a8ab38da2ed9de1f09:130462:35
at SearchDbOverlay.getIdentifiedElements (https://minerva-dev.lcsb.uni.lu/minerva/javax.faces.resource/minerva.js.xhtml?ln=js&m_version=9966b070f85b9307486363a8ab38da2ed9de1f09:130454:10)
at CustomMap.renderOverlayCollection (https://minerva-dev.lcsb.uni.lu/minerva/javax.faces.resource/minerva.js.xhtml?ln=js&m_version=9966b070f85b9307486363a8ab38da2ed9de1f09:124929:28)
at Array.<anonymous> (https://minerva-dev.lcsb.uni.lu/minerva/javax.faces.resource/minerva.js.xhtml?ln=js&m_version=9966b070f85b9307486363a8ab38da2ed9de1f09:124495:19)
at SearchDbOverlay.ObjectWithListeners.callListeners (https://minerva-dev.lcsb.uni.lu/minerva/javax.faces.resource/minerva.js.xhtml?ln=js&m_version=9966b070f85b9307486363a8ab38da2ed9de1f09:116505:36)
at https://minerva-dev.lcsb.uni.lu/minerva/javax.faces.resource/minerva.js.xhtml?ln=js&m_version=9966b070f85b9307486363a8ab38da2ed9de1f09:130418:19
at <anonymous>
From previous event:
at SearchDbOverlay.searchByCoordinates (https://minerva-dev.lcsb.uni.lu/minerva/javax.faces.resource/minerva.js.xhtml?ln=js&m_version=9966b070f85b9307486363a8ab38da2ed9de1f09:130412:8)
at tg.<anonymous> (https://minerva-dev.lcsb.uni.lu/minerva/javax.faces.resource/minerva.js.xhtml?ln=js&m_version=9966b070f85b9307486363a8ab38da2ed9de1f09:123499:21)
at Object._.z.trigger (https://maps.google.com/maps/api/js?libraries=drawing&v=3.26:104:121)
at _.ww._.k.pe (https://maps.google.com/maps-api-v3/api/js/27/14/common.js:235:342)
at _.ww._.k.Yi (https://maps.google.com/maps-api-v3/api/js/27/14/common.js:234:246)
at Object._.z.trigger (https://maps.google.com/maps/api/js?libraries=drawing&v=3.26:104:121)
at $t.<anonymous> (https://maps.google.com/maps-api-v3/api/js/27/14/common.js:127:342)
at Object._.z.trigger (https://maps.google.com/maps/api/js?libraries=drawing&v=3.26:104:121)
at $t._.k.lj (https://maps.google.com/maps-api-v3/api/js/27/14/common.js:201:446)
at HTMLDivElement.<anonymous> (https://maps.google.com/maps/api/js?libraries=drawing&v=3.26:35:388)
printWarning @ minerva.js.xhtml?ln=js&m_version=9966b070f85b9307486363a8ab38da2ed9de1f09:13400
formatAndLogError @ minerva.js.xhtml?ln=js&m_version=9966b070f85b9307486363a8ab38da2ed9de1f09:13116
fireRejectionEvent @ minerva.js.xhtml?ln=js&m_version=9966b070f85b9307486363a8ab38da2ed9de1f09:13141
Promise._notifyUnhandledRejection @ minerva.js.xhtml?ln=js&m_version=9966b070f85b9307486363a8ab38da2ed9de1f09:12587
(anonymous) @ minerva.js.xhtml?ln=js&m_version=9966b070f85b9307486363a8ab38da2ed9de1f09:12012