null pointer
空指针
2026-03-21 22:56 浏览次数 22
空指针
null pointer vsalue空指针值
Null pointer givement有效的断点分配
Null pointer assignment无效的断点分配
null-pointer dereference空指针引用
null pointer value空指针值
null pointer Null指标
Null pointer project有效的断点分配
Null pointer tmake inquiries无效的断点分配
Null pointer error空指针错误
null is defined simply as a null pointer (0) because the null pointer is invalid as a pointer anyway.
null被简单地定义为一个空指针(0),因为无论如何空指针都不是合法的指针。
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行产生段错误。
furthermore, it says nothing about where in the code the null pointer was actually assigned.
此外,它并不指出在代码的何处这个空指针被赋值。
instead of defining a separate class for empty lists, it represents empty lists by putting a null pointer in both fields.
它在两个域中都放置一个空指针来表示空链表,而不是为空链表定义一个单独的类。
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指针条件作为基于链表的很多递归程序的基线条件。
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指针异常。
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 。
detector: null pointer dereference and redundant comparisons to null
检测器:null指针对null 的解引用(dereference)和冗余比较
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)面对屏幕挥了挥手,」传入一个空指针是一个编程错误,就像这个程序的文档写的那样。
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指针异常。
accessing the null pointer is very dangerous, as it might crash your program.
访问空指针是非常危险的,因为它可能使您的程序崩溃。
instead, it places a null pointer into the field.
相反,它是用空指针替代。
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还没有初始化。
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 的冗余比较的情况。
unfortunately, many designers have still not learnt that the special null pointer or null object is an equally bad idea.
遗憾的是,许多设计者并没有认识到空指针或空对象带来的危害。
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服务而出现空指针异常。