diff --git a/exceptions/Exception.go b/exceptions/Exception.go index 1afcfd3..68fd339 100644 --- a/exceptions/Exception.go +++ b/exceptions/Exception.go @@ -108,6 +108,9 @@ func PackageAny(err interface{}) Exception { } func PackagePanic(panic interface{}) Exception { + if panic == nil { + return nil + } switch panic.(type) { case error: return NewRuntimeException(