错误:长度不能小于零 [英] Error : length cannot be less than Zero

查看:91
本文介绍了错误:长度不能小于零的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从数据库中获取数据时,我收到错误:



长度不能小于零



参数值:length

while i fetch the data from data base , i got the error :

length cannot be less than zero

parameter value : length

推荐答案

引用:

长度不能小于零

很清楚。在某处您正在访问某些 Object length 属性,该属性中没有任何数据。因此,它会引发异常。



调试代码并查看引发异常的行。在使用 length 执行任何操作之前,只需检查是否有任何数据。

Quite clear. Somewhere you are accessing the length property of some Object, which is not having any data in it. So, it would throw you exception.

Debug your code and see the line where it throws the exception. Before doing anything with the length, just check if has any data or not.


这篇关于错误:长度不能小于零的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆