diff --git a/indra/newview/llpanelprofilelegacy.cpp b/indra/newview/llpanelprofilelegacy.cpp
index 6ad2a0abfda7cb4e5ae3bf18908d4ced5fde4d90..1c11716d9e6942b101ea0978e18cfcdb8ce821b4 100644
--- a/indra/newview/llpanelprofilelegacy.cpp
+++ b/indra/newview/llpanelprofilelegacy.cpp
@@ -696,6 +696,7 @@ void LLPanelProfileLegacy::LLPanelProfilePicks::openPickInfo()
 	if (selected_value.isUndefined()) return;
 	
 	LLPickItem* pick = static_cast<LLPickItem*>(mPicksList->getSelectedItem());
+	if (!pick) return;
 	LLSD params;
 	params["pick_id"] = pick->getPickId();
 	params["avatar_id"] = pick->getCreatorId();