Return an error if no frames were created.

This commit is contained in:
Rene Gollent
2013-01-06 11:42:58 -05:00
parent 89deb8f273
commit 59fcd81013
+3
View File
@@ -194,6 +194,9 @@ Architecture::CreateStackTrace(Team* team,
break;
}
if (stackTrace->CountFrames() == 0)
return B_ERROR;
stackTraceDeleter.Detach();
_stackTrace = stackTrace;
return B_OK;