summaryrefslogtreecommitdiffhomepage
path: root/table
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-10-20 14:22:59 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-10-20 16:57:13 +0900
commit52c73c394a832fa80357d57b8da7a0c2428fb7f4 (patch)
treef0d20c137a790bb7603cfca31bfcdc494966f8fc /table
parent4193c36b06f170ac0965c4d081d9300096335765 (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.go2
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 {