Jump to content
Search Community

I Found a Bug About Property noCache

cosmos53076 test
Moderator Tag

Recommended Posts

Hey, guys! When I use the DataLoader class to load data, I set the property noCache to true. I send the JSON data with HTTP request. But I got a error message about null object. So I checked the code of LoaderItem class line 87. The source code is

 

var data:URLVariables = (request.data == null) ? new URLVariables() : request.data as URLVariables;

 

Ok, Obviously, my data is not null, but also it's not the URLVariables. So I just make little change in this line code to fix this bug:

 

var data:URLVariables = (!(request.data is URLVariables) || request.data == null) ? new URLVariables() : request.data as URLVariables;

 

Hope manager can fix this bug in next version. Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...