Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Commit

Permalink
Fixes NPE in select tag
Browse files Browse the repository at this point in the history
related commit: deb84c9
  • Loading branch information
rainboyan committed Feb 2, 2023
1 parent deb84c9 commit af1efab
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.grails.web.taglib

import com.opensymphony.module.sitemesh.RequestConstants
import org.springframework.context.ApplicationContextAware

import grails.build.support.MetaClassRegistryCleaner
import grails.core.DefaultGrailsApplication
import grails.core.GrailsApplication
Expand Down Expand Up @@ -143,6 +145,9 @@ abstract class AbstractGrailsTagTests {
}
def go = tagLibrary.newInstance()
appCtx.autowireCapableBeanFactory.autowireBeanProperties(go, AutowireCapableBeanFactory.AUTOWIRE_BY_NAME, false)
if (go instanceof ApplicationContextAware) {
go.applicationContext = appCtx
}
def gspTagLibraryLookup = appCtx.gspTagLibraryLookup

OutputEncodingStack stack=OutputEncodingStack.currentStack(OutputContextLookupHelper.lookupOutputContext(), true)
Expand Down

0 comments on commit af1efab

Please sign in to comment.