Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
4077 | minor | always | 06-12-10 04:07 | 07-09-10 07:38 | |
|
|||||
Reporter: | domdorn | Platform: | |||
Assigned To: | domdorn | OS: | |||
Priority: | normal | OS Version: | |||
Status: | resolved | Product Version: | 4.0.9 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | |||
|
|||||
Summary: | 0004077: NPE in Env during cleanup | ||||
Description: |
it is possible to generate a NPE in Env.java in the cleanup method: AbstractFunction []fun = _fun; _fun = null; if (fun != null) { boolean isUsed = false; if (_page.setRuntimeFunction(fun)) { isUsed = true; } here it is not checked if _page is null, which could be the case if the Class is created with the Constructor(QuercusContext) where everything except the context is null. I propose to change the line to if (_page != null && _page.setRuntimeFunction(fun)) { |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
There are no notes attached to this issue. |