| Anonymous | Login | Signup for a new account | 06-08-2026 21:00 PDT |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0003221 | [Quercus] | minor | always | 01-06-09 12:42 | 01-06-09 15:56 | ||||
| Reporter | koreth | View Status | public | ||||||
| Assigned To | nam | ||||||||
| Priority | urgent | Resolution | unable to reproduce | ||||||
| Status | closed | Product 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. |
||||||||
| Additional Information | |||||||||
| Attached Files | |||||||||
|
|
|||||||||
Notes |
|
|
(0003701) nam 01-06-09 15:23 |
Issue does not exist on trunk. php/3c3g |
|
(0003703) nam 01-06-09 15:56 |
php/3c3g |
| Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed. 27 unique queries executed. |