Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
这是引发您错误的行:
将此数据成员声明为,
但在调用您的
初始化
方法时,它似乎没有值(尚未)。要解决此问题,您将需要初始化此数据成员(如果null
状态无效),或者您可以检查它是否是null
,并且只有调用setCellvalueFactory
如果不是null
。也许投资者ID列为XML中的某些记录是空的。
This is the line which throws your error:
This data member is declared as
but seemingly it does not have a value (yet) when your
initialize
method is being called. To solve this issue you will need to either initialize this data member (if anull
state is invalid), or you can check whether it'snull
and only callsetCellValueFactory
if it's notnull
.Maybe the investor id column is empty for some records in your XML.