0
當試圖執行ShadowCanvas.getHeight(),我得到一個NullPointerException在ShadowWrangler.InvocationPlan.toString()Robolectric - ShadowCanvas - 上InvocationPlan.toString()NullPointerException異常
我的應用程序代碼:
public float getCanvasHeight() {
return mCanvas.getHeight();
}
引發異常:
方法拋出'java.lang.NullPointerException'異常。不能 評估 com.xtremelabs.robolectric.bytecode.ShadowWrangler $ InvocationPlan.toString()
任何想法我做錯了嗎?