我这是把java转kotlin,报错提示:

java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter convertViewat com.ufi.pdioms.ztkotlin.adapter.ListViewAdapter.getView(Unknown Source:2)at android.widget.AbsListView.obtainView(AbsListView.java:2396)

错误在哪,可以发现,我不说多,直接说吧,如下图:

代码中:convertView: View,convertView不能空,添加为空
修改:

override fun getView(position: Int, convertView: View?, parent: ViewGroup): View?

n-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter convertView相关推荐

  1. Parameter specified as non-null is null method kotlin.jvm.internal.Intrinsics.checkNotNullParameter

    问题描述 Android 的 Java代码通过Android Studio自动化转换Kotlin报错 java.lang.NullPointerException: Parameter specifi ...

  2. Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter

    Java自动转换Kotlin代码之后,编译出现的问题 原因在于有的函数的传参没有做允许空值处理,找到那个函数参数后加入?即可 eg. override fun bind(data: Any?) {do ...

  3. Failed resolution of: Lkotlin/jvm/internal/Intrinsics;

    在对大疆V5版本SDK二次开发中,遇到这样一个报错.Failed resolution of: Lkotlin/jvm/internal/Intrinsics; 解决办法,添加 implementat ...

  4. attempted to return null from a method with a primitive return type (int).

    错误产生的场景 dao层接口如下 int getResourceDataNumsByTitle(String title); mapper.xml 中sql语句如下 <select id=&qu ...

  5. 关于mybatis的报错 attempted to return null from a method with a primitive return type (int)

    https://blog.csdn.net/kisscatforever/article/details/77801060 一.前言       在往常敲代码的时候没有留意过int和Integer的区 ...

  6. Mybatis中的attempted to return null from a method with a primitive return type (int).异常

    错误截图: org.apache.ibatis.binding.BindingException: Mapper method 'com.shop_demo.dao.AdminDAO.getAdmin ...

  7. MyBatis异常报告: Mapper method ‘com.dao.UserMapper.insert attempted to return null from a method with ……

    错误名称:Mapper method 'com.dao.UserMapper.insert attempted to return null from a method with a primitiv ...

  8. Mybatis:Mapper method attempted to return null from a method with a primitive return type (int)

    Mybatis中 Mapper method attempted to return null from a method with a primitive return type (int)错误 本 ...

  9. sql报错解决方案:attempted to return null from a method with a primitive return type (int)

    问题现象 idea执行查询数量语句控制台报错:attempted to return null from a method with a primitive return type (int). 解决 ...

最新文章

  1. echarts 设置仪表盘数字的位置_一个 ECharts 做的猜数小游戏
  2. 安全自动化在于信任,而非技术
  3. AtCoder AGC029E Wandering TKHS
  4. boost::polygon模块实现自定义点相关的测试程序
  5. sklearn中的正则化
  6. 这几道 C/C 题涉及你的知识盲区?
  7. Linux中的【.】【./】【/】代表的含义【转载】
  8. Strom 可定制任务调度策略(Pluggable Scheduler)
  9. 【图像融合】基于matlab GUI小波变换可见光与红外光图像融合(带面板)【含Matlab源码 701期】
  10. pp助手|pp助手下载
  11. 查看电脑CPU是否支持虚拟化
  12. 十字线阵---CBF,传统波束形成
  13. 让画面契合音乐节拍——BeatEdit
  14. 分布形态的度量-偏度系数与峰度系数的探讨
  15. JPG图片比较大如何压缩,图片压缩的简单方法
  16. 数据分析【实践】——AB测试的应用、案例及关键点
  17. (翻译)锚定效应(Anchoring)
  18. 南卫理公会大学计算机科学,南卫理公会大学计算机科学专业.pdf
  19. Boll布林带波动率策略
  20. 郭炜-C语言程序设计-程序设计与算法(一)-第三周

热门文章

  1. Word文档基本操作
  2. [心情]享受堕落的乐趣
  3. 微信小程序从前端wxml页面数据获取,到JS页面数据对象字符化,传递给后台,前台再从后台获取数据并在wxml页面动态展示数据(前后台交互实现发表动态功能)
  4. python自带库zlib_python中的zlib解压
  5. iPhone6/6S的适配
  6. Mysql循环插入语句
  7. 【C语言】函数详解第一期,函数基础
  8. java代码实现十进制到二进制的转化
  9. slice,splice,split的区别,一开就懂
  10. 什么 ? 陪玩都月入过忘拉~这不得python采集一下