mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30:19 +08:00
Fix get null object bug.
This commit is contained in:
@ -83,6 +83,10 @@ func extendApplicationWithOrg(application *Application) {
|
||||
}
|
||||
|
||||
func getApplication(owner string, name string) *Application {
|
||||
if owner == "" || name == "" {
|
||||
return nil
|
||||
}
|
||||
|
||||
application := Application{Owner: owner, Name: name}
|
||||
existed, err := adapter.Engine.Get(&application)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user