Fix null pointer exception
This commit is contained in:
parent
a01f6576cf
commit
352334d668
@ -307,7 +307,7 @@ function getCurrentFacebookPageId() {
|
|||||||
function getIdentifier(urlstr) {
|
function getIdentifier(urlstr) {
|
||||||
try {
|
try {
|
||||||
var k = getIdentifierInternal(urlstr);
|
var k = getIdentifierInternal(urlstr);
|
||||||
if (k && k.indexOf('!') != -1) return null;
|
if (!k || k.indexOf('!') != -1) return null;
|
||||||
return k.toLowerCase();
|
return k.toLowerCase();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.warn("Unable to get identifier for " + urlstr);
|
console.warn("Unable to get identifier for " + urlstr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user