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还没有初始化。
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指针异常。
The system level error includes syntactical error, null pointer exception, web service timeout, database connection timeout, and so on.
系统级错误包括语法错误、空指针异常、web服务超时、数据库连接超时等。
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的冗余比较的情况。
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行产生段错误。
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指针异常。
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服务而出现空指针异常。
Unlike, for example, a class-cast exception, a null-pointer exception says nothing about what was expected instead of the null pointer.
例如,不像一个类转型异常,空指针异常不给出它所需要的内容的任何信息,只有一个空指针。
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.
相反,在运行时发出的错误将会是一个空指针异常而不是类强制转换异常。
Additionally, any code that traverses our lists and forgets to check for the empty case will get a NoSuchElementException, as opposed to the much-less-helpful null-pointer exception.
另外,任何阻断我们的链表以及忽略检查空例的代码将返回一个NoSuchElementException,而不是那些没什么用的空指针异常。
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.
与可怕的空指针异常(该异常除了报告空指针之外,对于将要发生的事情什么也不说)不同,类强制转换异常相对来说容易调试。
Work items that contain 'null' and 'pointer' and 'exception' will also be found.
此搜索还将找到包含“null”和“pointer”以及“exception”的工作物件。
Work items that contain 'null' and 'pointer' and 'exception' will also be found.
此搜索还将找到包含“null”和“pointer”以及“exception”的工作物件。
应用推荐