|
Mantis - Quercus
|
|||||
| Viewing Issue Advanced Details | |||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 3221 | minor | always | 01-06-09 12:42 | 01-06-09 15:56 | |
|
|
|||||
| Reporter: | koreth | Platform: | |||
| Assigned To: | nam | OS: | |||
| Priority: | urgent | OS Version: | |||
| Status: | closed | Product Version: | 4.0.0 | ||
| Product Build: | Resolution: | unable to reproduce | |||
| Projection: | none | ||||
| ETA: | none | Fixed in Version: | 4.0.0 | ||
|
|
|||||
| Summary: | 0003221: NPE when a Java method returns Java null | ||||
| Description: |
<?php import test.TestClass; function getFoo() { return TestClass::foo(); } package test; public class TestClass { public static String foo() { return null; } } This gives an NPE in compiled mode because the generated code is trying to call copyReturn() on the return value of the callMethod() call. Workaround is to assign to a PHP variable and return that, or to make the Java code return NullValue.NULL. |
||||
| Steps To Reproduce: | |||||
| Additional Information: | |||||
| Relationships | |||||
| Attached Files: | |||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||