mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1233438 - Fix error in TelemetryEnvironment for addons where description is undefined. r=gfritzsche
This commit is contained in:
parent
48e0d20f60
commit
4a41bbdf57
@ -261,7 +261,7 @@ function getGfxField(aPropertyName, aDefault) {
|
||||
* @return {String} The substring or null if the input string is null.
|
||||
*/
|
||||
function limitStringToLength(aString, aMaxLength) {
|
||||
if (aString === null) {
|
||||
if (aString === null || aString === undefined) {
|
||||
return null;
|
||||
}
|
||||
return aString.substring(0, aMaxLength);
|
||||
|
Loading…
Reference in New Issue
Block a user