我的代码如下所示
@IBOutlet weak var signInButton: GradientButton!
getCredentials方法如下
public void getEmployeeDetails(Employee employee){
Employeecredentials credentials= employee.getCredentials();
}
如何模拟上述方法链。
我试过
void getCredentials(){
EmployeeCredentials employeecredentials= ThirdpartyClass().thirdpartyMethodB().thirdpartyMethodc().getCredentials
return employeecredentials;
}
但是我在方法链上得到空指针异常。我缺少什么