Accessing the null pointer is very dangerous, as it might crash your program.
访问空指针是非常危险的,因为它可能使您的程序崩溃。
Instead of defining a separate class for empty lists, it represents empty lists by putting a null pointer in both fields.
它在两个域中都放置一个空指针来表示空链表,而不是为空链表定义一个单独的类。
Notice how like our recursive programs, the definition of a linked list also contains a base case -- in this case, the NULL pointer.
注意,与我们的递归程序非常类似,链表的定义也包括一个基线条件 ——在这里是NULL指针。
Furthermore, it says nothing about where in the code the null pointer was actually assigned.
此外,它并不指出在代码的何处这个空指针被赋值。
Make sure you are not accessing null pointer.
确保您不是在访问空指针。
Else, it goes through the binding vector array looking for a non-NULL pointer to binding handle.
否则,它循环遍历绑定向量数组,寻找非null的绑定句柄指针。
Since a NULL pointer terminates a list, we can also use the NULL pointer condition as a base case for many of our recursive functions on linked lists.
由于NULL指针会结束一个链表,所以我们也可以使用 NULL 指针条件作为基于链表的很多递归程序的基线条件。
That means a reference type can have a null pointer, but a value type cannot have a null value.
这意味着引用类型可能有空指针,但是数值类型不能有空值。
Normal control characters (characters with values less than 32) : This especially includes character 0, traditionally called NUL; I call it NIL to distinguish it from c's NULL pointer.
常规控制字符(字符值小于32):还特别包括字符0,传统上称做NUL;我把它称为NIL以区别于c语言中的NULL指针。
Unfortunately, many designers have still not learnt that the special null pointer or null object is an equally bad idea.
遗憾的是,许多设计者并没有认识到空指针或空对象带来的危害。
Some types of memory access errors (like using a NULL pointer) cause a program to crash outright.
有些类型的内存访问错误 (比如使用一个NULL指示器) 将会导致一个程序完全崩溃。
Clearly, SOAP separating is not the same as a null pointer.
显然,SOAP分离并不同于空指针。
In this... abomination, "she waved at the screen," passing a NULL pointer is a programming error, as the documentation for the function clearly states.
在这里,“她(译注:指guru)面对屏幕挥了挥手,”传入一个空指针是一个编程错误,就像这个程序的文档写的那样。
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.
清单8列出了jfs_mount . c文件的源代码中被修改过的代码,我们在代码中创建了一个空指针异常,从而使代码在第109行产生段错误。
The system level error includes syntactical error, null pointer exception, web service timeout, database connection timeout, and so on.
系统级错误包括语法错误、空指针异常、web服务超时、数据库连接超时等。
I said earlier that an empty list is a LinkedList containing a null pointer in both fields.
我前面说过,空链表就是两个域都包含一个空指针的LinkedList。
Sun's JSF RI expects a renderer will send a null pointer exception if your component doesn't have a renderer.
Sun的JSFRI期望,在组件没有渲染器的时候,渲染器会发送一个空指针异常。
In this example, line 6 will cause a null pointer exception because the variable actions has not been initialized.
在这个例子中,第6行将产生一个null指针异常,因为变量actions还没有初始化。
If the lua_open call fails, it returns a null pointer.
如果lua_open调用失败,则返回一个null指针。
In this example, if the Map on line 1 does not contain the person named "Bob," a null pointer exception will result on line 5 when the person is asked for his name.
在这个例子中,如果第1行的Map不包括一个名为“bob”的人,那么在第5行询问person的名字时就会出现null指针异常。
Because FindBugs doesn't know if the map contains "Bob" or not, it will flag line 5 as a possible null pointer exception.
因为FindBugs不知道map是否包含“bob”,所以它将第5行标记为可能null指针异常。
This code is included in the code which handles the click event for the Invoke Service button and its purpose is to avoid a null pointer exception when the web service is invoked with an empty string.
它的目的是避免使用空子符串调用Web服务而出现空指针异常。
Detector: null pointer dereference and redundant comparisons to null.
检测器:null指针对null的解引用(dereference)和冗余比较。
It looks for cases where a code path will or could cause a null pointer exception, and it also looks for cases in which there is a redundant comparison to null.
它查找代码路径将会或者可能造成null指针异常的情况,它还查找对null的冗余比较的情况。
Unlike the dreaded null-pointer exception (which says nothing about what was expected to occur instead of the null pointer), a class-cast exception is relatively easy to debug.
与可怕的空指针异常(该异常除了报告空指针之外,对于将要发生的事情什么也不说)不同,类强制转换异常相对来说容易调试。
Unlike, for example, a class-cast exception, a null-pointer exception says nothing about what was expected instead of the null pointer.
例如,不像一个类转型异常,空指针异常不给出它所需要的内容的任何信息,只有一个空指针。
Instead, the error signaled at run time would be a null-pointer exception instead of a class-cast exception.
相反,在运行时发出的错误将会是一个空指针异常而不是类强制转换异常。
Unfortunately, automata theory tells us that no tool could ever statically determine which programs will throw null-pointer exceptions.
不幸的是,自动控制理论告诉我们,没有工具可以静态地决定哪些程序将抛出空指针异常。
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.
在下一个部分,我们将还要注视另外一个非常普遍的,也被证明是一个空指针异常的错误类型,以及怎样识别它和避免它。
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.
在下一个部分,我们将还要注视另外一个非常普遍的,也被证明是一个空指针异常的错误类型,以及怎样识别它和避免它。
应用推荐