fix: init a empty ErrorPages if nil
This commit is contained in:
parent
9fbb0bb859
commit
dce94a4bfc
|
@ -49,6 +49,10 @@ func (wm *WebAppMetadata) EncodeMsgpack(enc *msgpack.Encoder) error {
|
||||||
|
|
||||||
items := make([]interface{}, 5)
|
items := make([]interface{}, 5)
|
||||||
|
|
||||||
|
if wm.ErrorPages == nil {
|
||||||
|
wm.ErrorPages = make(WebAppErrorPages)
|
||||||
|
}
|
||||||
|
|
||||||
items[0] = wm.Name
|
items[0] = wm.Name
|
||||||
items[1] = wm.TryFiles
|
items[1] = wm.TryFiles
|
||||||
items[2] = wm.ErrorPages
|
items[2] = wm.ErrorPages
|
||||||
|
|
Loading…
Reference in New Issue