Hello,

This one hit when trying the jar template cache in Turbine...

-- Ilkka

[mailto:[EMAIL PROTECTED]]


    public static Resource getResource(String resourceName, int
resourceType)
        throws ResourceNotFoundException, ParseErrorException, Exception
    {
        Resource resource = null;
        ResourceLoader resourceLoader = null;  //**** set to null ****
        
        if (globalCache.containsKey(resourceName))
        {
            resource = (Resource) globalCache.get(resourceName);

            if ( resource.requiresChecking() )
            {
                resource.touch();

                if(  resource.isSourceModified() )
                {
                    try
                    {
                        long howOldItWas = resourceLoader.getLastModified(
resource );  // **** null reference ****

Reply via email to