diff --git a/indra/newview/llpaneleditwearable.cpp b/indra/newview/llpaneleditwearable.cpp
index a1d305789fcc15188f3d7f0e8e4951772723aaa1..78b0bbf117267017581a6fe9b8b7ada35b42dc3a 100644
--- a/indra/newview/llpaneleditwearable.cpp
+++ b/indra/newview/llpaneleditwearable.cpp
@@ -1462,6 +1462,9 @@ LLPanel* LLPanelEditWearable::getPanel(LLWearableType::EType type)
 
                 case LLWearableType::WT_PHYSICS:
                         return mPanelPhysics;
+
+                default:
+                        return NULL;
         }
 
         return NULL;