空指针错误通常是一个或多个程序员假设出错的结果。
Null pointer errors are usually the result of one or more programmer assumptions being violated.
在这里,“她(译注:指guru)面对屏幕挥了挥手,”传入一个空指针是一个编程错误,就像这个程序的文档写的那样。
In this... abomination, "she waved at the screen," passing a NULL pointer is a programming error, as the documentation for the function clearly states.
清单8列出了jfs_mount . c文件的源代码中被修改过的代码,我们在代码中创建了一个空指针异常,从而使代码在第109行产生段错误。
Listing 8 lists the code that was modified in the source of the jfs_mount.c file to create a segmentation fault at line 109 by creating a null pointer exception.
在下一个部分,我们将还要注视另外一个非常普遍的,也被证明是一个空指针异常的错误类型,以及怎样识别它和避免它。
In the next installment, we'll take a look at yet another very common bug pattern that manifests itself as a null-pointer exception, how to recognize it, and how to avoid it.
相反,在运行时发出的错误将会是一个空指针异常而不是类强制转换异常。
Instead, the error signaled at run time would be a null-pointer exception instead of a class-cast exception.
可能是泄漏、空指针或者错误的内存使用。
There might be leaks, dangling Pointers, or incorrect memory usage.
我们将探讨的第一个关于空指针异常的错误类型,是一个我称之为悬挂复合类型的错误类型。
The first bug pattern relating to null-pointer exceptions that we'll explore is one that I call the Dangling Composite pattern.
在许多空指针异常中,真正的错误出现在变量被赋为空值的地方。
In many null-pointer exceptions, the true bug occurs where the variable is actually assigned to null.
系统级错误包括语法错误、空指针异常、web服务超时、数据库连接超时等。
The system level error includes syntactical error, null pointer exception, web service timeout, database connection timeout, and so on.
系统级错误包括语法错误、空指针异常、web服务超时、数据库连接超时等。
The system level error includes syntactical error, null pointer exception, web service timeout, database connection timeout, and so on.
应用推荐