错误检查的基本方法是编写如清单1所示的代码。
The basic method for error checking is to write your code as shown in listing 1.
此方法执行一个基本的检查(以确保在继续之前已经设置了App ID)、初始化ui资源和初始化facebook会话实例(参见清单5)。
This method performs a basic check to make sure that the App ID is set before proceeding, initializes the UI resources, and initializes the Facebook session instance (see Listing 5).
解决方法和预防措施:确保基本例的表示和检查的一致性。
Cures and preventions: Ensure that the base cases are represented and checked for consistently.
应用推荐