Mantis Bugtracker
  

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

- Relationships

- 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
 

- Issue History
Date Modified Username Field Change
01-06-09 12:42 koreth New Issue
01-06-09 13:37 nam Status new => assigned
01-06-09 13:37 nam Assigned To  => nam
01-06-09 13:37 nam Priority normal => urgent
01-06-09 15:23 nam Note Added: 0003701
01-06-09 15:56 nam Status assigned => closed
01-06-09 15:56 nam Note Added: 0003703
01-06-09 15:56 nam Resolution open => unable to reproduce
01-06-09 15:56 nam Fixed in Version  => 4.0.0


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker