The cure for object loitering in this case is to null out the reference after popping it from the stack, as shown in the commented-out line of code in Listing 3.
修复这种情况下的对象游离的方法是,当对象从堆栈弹出之后,就消除它的引用,如清单3中注释掉的行所示。
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 NOT NULL attribute of column Credit_Line in table ACCOUNT has to be dropped because some other account types have been added that do not have a credit line.
ACCOUNT表中的 Credit_Line列的NOTNULL属性必须删除,这是因为添加了没有信用行的其他账号类型。
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指针异常。
If this method returns void, no change is needed, but if it returns DataObject, change the last line from return null; to return input;.
如果这个方法返回void,则不需要任何更改;如果返回DataObject,则将最后一行从returnnull;更改为returninput;。
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指针异常。
A serial line (null-modem cable) connects the machines through their serial ports.
一条串行线(空调制解调器电缆)将通过机器的串口连接它们。
Therefore, if the collector runs before line //2 attaches a strong reference to the re-created object, the object is lost and wr.get() returns null.
因此,如果收集器在行 //2在重新创建的对象上施加一个强引用之前运行,对象就会丢失,wr.get()则返回null 。
Line 7 gets the session key from the session if it's already present, else it would be null.
如果会话已存在,第7行代码将从会话中获取会话键,否则它将为null。
In this example, line 6 will cause a null pointer exception because the variable actions has not been initialized.
在这个例子中,第6行将产生一个null指针异常,因为变量actions还没有初始化。
This line also traps for a null value and converts it to an empty string to prevent problems during later processing.
这一行代码也会专门处理null值,它将null值转换为一个空字符串以避免后面的处理出现问题。
Line 03 checks to see if the parameter value is null (or nil, as Ruby calls it).
第03行检查参数值是否为null(在Ruby调用时为nil)。
The problem with this line of code is that the variable instance can become non-null before the body of the Singleton constructor executes.
这行代码的问题是:在Singleton构造函数体执行之前,变量instance可能成为非null的。
This line is supposed to ensure that instance will only ever be null or refer to a fully constructed Singleton object.
此行应该确保instance只为null或引用一个构造完整的Singleton对象。
Remove NULL character after header line in exported CSV.
在标题行中导出CSV后删除空字符。
Remove NULL character after header line in exported CSV.
在标题行中导出CSV后删除空字符。
应用推荐