mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
Add check for null.
This commit is contained in:
parent
230818972e
commit
260f384c92
@ -74,7 +74,7 @@ function Init()
|
||||
|
||||
if (value) value = value.QueryInterface(Components.interfaces.nsIRDFLiteral);
|
||||
if (value) value = value.Value;
|
||||
if (value != "")
|
||||
if ((value) && (value != ""))
|
||||
{
|
||||
var sep;
|
||||
|
||||
@ -111,9 +111,6 @@ function Init()
|
||||
endHour = hours.substr(dashSep + 1, hours.length-1);
|
||||
}
|
||||
|
||||
dump("start: " + startHour + "\n");
|
||||
dump("end: " + endHour + "\n");
|
||||
|
||||
// set start hour
|
||||
var startHourNode = document.getElementById("startHourRange");
|
||||
for (var x=0; x < startHourNode.options.length; x++)
|
||||
|
@ -74,7 +74,7 @@ function Init()
|
||||
|
||||
if (value) value = value.QueryInterface(Components.interfaces.nsIRDFLiteral);
|
||||
if (value) value = value.Value;
|
||||
if (value != "")
|
||||
if ((value) && (value != ""))
|
||||
{
|
||||
var sep;
|
||||
|
||||
@ -111,9 +111,6 @@ function Init()
|
||||
endHour = hours.substr(dashSep + 1, hours.length-1);
|
||||
}
|
||||
|
||||
dump("start: " + startHour + "\n");
|
||||
dump("end: " + endHour + "\n");
|
||||
|
||||
// set start hour
|
||||
var startHourNode = document.getElementById("startHourRange");
|
||||
for (var x=0; x < startHourNode.options.length; x++)
|
||||
|
Loading…
Reference in New Issue
Block a user