wuyizi / opensocial-actionscript-client

Automatically exported from code.google.com/p/opensocial-actionscript-client
0 stars 0 forks source link

null reference error loading friends #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. try to load friends

What is the expected output? What do you see instead?
null reference error

What version of the product are you using? On what operating system?
latest, windows 7

Please provide any additional information below.

NRE occurs because object value is being used before it is created:

file: org/opensocial/client/base/AbstractDataType.as    
line: 102

---

  public static function getType(rawObj:Object):Class {
    try {
      return Utils.getClass(rawObj["type"] as String);
    } catch(err:Error) {
      var e:OpenSocialError =
          new OpenSocialError("Cannot get type from raw object. \n Error:" + e.message);
      logger.error(e);
      throw e;
    }
    return null;
  }

Original issue reported on code.google.com by leet...@gmail.com on 30 Sep 2011 at 7:04