summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim ProductEngine <vsavchuk@productengine.com>2012-01-23 17:50:04 +0200
committerVadim ProductEngine <vsavchuk@productengine.com>2012-01-23 17:50:04 +0200
commit8f60dc01366732713be8290a84bc50ba10059e73 (patch)
tree34cf85c98e0f16049cea6cd2a7c0cf075de5232e
parentf324e67780cb002149b11d0fbf49f5d1794b7299 (diff)
EXT-1836 FIXED Avoid assigning NULL to an std::string.
-rw-r--r--indra/newview/llfilepicker.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llfilepicker.cpp b/indra/newview/llfilepicker.cpp
index 8024755e86..360e35f6d3 100644
--- a/indra/newview/llfilepicker.cpp
+++ b/indra/newview/llfilepicker.cpp
@@ -1073,8 +1073,11 @@ void LLFilePicker::chooser_responder(GtkWidget *widget, gint response, gpointer
}
// set the default path for this usage context.
- picker->mContextToPathMap[picker->mCurContextName] =
- gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(widget));
+ const char* cur_folder = gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(widget));
+ if (cur_folder != NULL)
+ {
+ picker->mContextToPathMap[picker->mCurContextName] = cur_folder;
+ }
gtk_widget_destroy(widget);
gtk_main_quit();