Skip to content

Commit d0e302c

Browse files
committed
Fix sigsegv
1 parent f089911 commit d0e302c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

page/page.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ func ResolvePage(
1414
api *confluence.API,
1515
meta *metadata.Meta,
1616
) (*confluence.PageInfo, *confluence.PageInfo, error) {
17+
if meta == nil {
18+
return nil, nil, karma.Format(nil, "metadata is empty")
19+
}
1720
page, err := api.FindPage(meta.Space, meta.Title, meta.Type)
1821
if err != nil {
1922
return nil, nil, karma.Format(

0 commit comments

Comments
 (0)