commit | 8d7667c27f1b116386d7970a130439f02ac4491d | [log] [tgz] |
---|---|---|
author | David Reiss <dreiss@apache.org> | Mon Sep 13 17:32:13 2010 +0000 |
committer | David Reiss <dreiss@apache.org> | Mon Sep 13 17:32:13 2010 +0000 |
tree | 4affee3a95131c7a11091803d0bb984f32f4d27d | |
parent | d4235e0a47bde7a2fdbc9fc73dc6ca7231992278 [diff] |
Don't segfault if t_enum::get_constant_by_name fails The recent enum change was causing t_enum::get_constant_by_name to fail in t_const_value::get_integer. This was causing a difficult-to-debug segfault. Check for failure and throw an exeception. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@996609 13f79535-47bb-0310-9956-ffa450edef68