diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-10-20 14:22:59 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-10-20 16:57:13 +0900 |
commit | 52c73c394a832fa80357d57b8da7a0c2428fb7f4 (patch) | |
tree | f0d20c137a790bb7603cfca31bfcdc494966f8fc /table | |
parent | 4193c36b06f170ac0965c4d081d9300096335765 (diff) |
policy: avoid null pointer dereference
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table')
-rw-r--r-- | table/policy.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/table/policy.go b/table/policy.go index 2a97e42b..7369a823 100644 --- a/table/policy.go +++ b/table/policy.go @@ -1987,7 +1987,7 @@ func (s *Statement) ToApiStruct() *api.Statement { } } as := &api.Actions{} - if s.RouteAction != nil { + if s.RouteAction != nil && !reflect.ValueOf(s.RouteAction).IsNil() { as.RouteAction = s.RouteAction.(*RoutingAction).ToApiStruct() } for _, a := range s.ModActions { |