前言 最近debug时忽然发现,如果一个集合赋值为null,那么对该集合进行foreach循环(也叫增强for循环)时,会报NPE(即空指针异常NullPointerException). 代码如下: final List<String> list = null; // final List<String> list = new ArrayList<>(); for (final String string : list) { System.out.println(st
windows7 安装 Realm Studio 后,打开报错 报错如下: A JavaScript error occurred in the main process Uncaught Exception: Error: The specified procedure could not be found. W?C:Users)daiangpingppb17b4003-c813-4645-c57-138398a4535tmp at process.module.(anonymous fun