• With issues:
  • Use the search tool before opening a new issue.
  • Please provide source code and commit sha if you found a bug.
  • Review existing issues and provide feedback or react to them.

Description

How to reproduce

package main

import (
    "github.com/gin-gonic/gin"
)

func main() {
    ctx := &gin.Context{}
        ctx.Done()
}

Expectations

panic: runtime error: invalid memory address or nil pointer dereference [recovered]
    panic: runtime error: invalid memory address or nil pointer dereference

Gin Panic  context.engine is nil

Comment From: ZackaryWelch

Duplicate of https://github.com/gin-gonic/gin/issues/3178