代码文件:
布局文件:
真是被搞@_@了
ViewHolder类:
高洛峰2017-04-17 17:00:11
Your statement block should not be empty, so a null pointer error will be reported. moduels.tradeModelLabel
,而是setText
中的内容。
如果moduels.tradeModelLabel
为空,上面的if-else
伊谢尔伦2017-04-17 17:00:11
If this kind of inexplicable problem occurs, clean or rebuild the project first. Sometimes android studio will miss some codes when compiling..
阿神2017-04-17 17:00:11
Change your first judgment to tradeModelString == null
If tradeModelString is null
This sentence will report a null pointer