Commit a3dde49a authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[2372] catch a buggy case of bogus ID in State::getInstance

parent 6a2d1a5c
......@@ -218,6 +218,12 @@ State::getInstance(ID state_id) {
case String:
return (STRING_STATE);
// This is a bug of the caller, and this method is only expected to be
// used by tests, so we just forcefully make it fail by asserting the
// condition.
return (STRING_STATE); // a dummy return, to silence some compilers.
const State*
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment