It could be null when switching to a parent tab since the parent tab will be
restored before showing the tab picker. This clears mPickerData before building
the tab picker.
* @return The WebView's url or null.
*/
public String getUrl() {
- return mPickerData.mUrl;
+ if (mPickerData != null) {
+ return mPickerData.mUrl;
+ }
+ return null;
}
/**
* @return The WebView's title (or url) or null.
*/
public String getTitle() {
- return mPickerData.mTitle;
+ if (mPickerData != null) {
+ return mPickerData.mTitle;
+ }
+ return null;
}
/**