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