This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 221324
Collapse All | Expand All

(-)tasklist.todo/src/org/netbeans/modules/tasklist/todo/TodoTaskScanner.java (+4 lines)
Lines 379-384 Link Here
379
                if (len == -1) break;
379
                if (len == -1) break;
380
                sb.append(buf, 0, len);
380
                sb.append(buf, 0, len);
381
            }
381
            }
382
        } catch(IllegalArgumentException ex) { // reading of extra characters into the specified character buffer failed
383
            Logger.getLogger(TodoTaskScanner.class.getName()).log(Level.INFO, "Reading failed for {0}, with charset: {1}.", new Object[]{FileUtil.toFile(fileObject).getPath(), charset}); //NOI18N;
384
            r.close();
385
            return "";
382
        } finally {
386
        } finally {
383
            r.close();
387
            r.close();
384
        }
388
        }

Return to bug 221324