am ee6ad3bd: am 59ac7b30: am 66abe3ae: Merge "Fix for crash if no content in DESCRIBE response"
* commit 'ee6ad3bd4bfc8e71b3b8c96eb4ea56a592e13e65':
Fix for crash if no content in DESCRIBE response
diff --git a/media/libstagefright/rtsp/MyHandler.h b/media/libstagefright/rtsp/MyHandler.h
index 5d760d3..95ed43a 100644
--- a/media/libstagefright/rtsp/MyHandler.h
+++ b/media/libstagefright/rtsp/MyHandler.h
@@ -511,6 +511,9 @@
if (response->mStatusCode != 200) {
result = UNKNOWN_ERROR;
+ } else if (response->mContent == NULL) {
+ result = ERROR_MALFORMED;
+ ALOGE("The response has no content.");
} else {
mSessionDesc = new ASessionDescription;