Bug 793136: Crash on content type being null. [r=mfinkle]

This commit is contained in:
Sriram Ramasubramanian 2012-09-24 16:42:53 -07:00
parent 61432139c7
commit 1540f7ce6f
2 changed files with 2 additions and 2 deletions

View File

@ -263,7 +263,7 @@ public final class Tab {
} }
public void setContentType(String contentType) { public void setContentType(String contentType) {
mContentType = contentType; mContentType = (contentType == null) ? "" : contentType;
} }
public String getContentType() { public String getContentType() {

View File

@ -3231,7 +3231,7 @@ Tab.prototype = {
tabID: this.id, tabID: this.id,
uri: fixedURI.spec, uri: fixedURI.spec,
documentURI: documentURI, documentURI: documentURI,
contentType: contentType, contentType: (contentType ? contentType : ""),
sameDocument: sameDocument sameDocument: sameDocument
} }
}; };