Sfoglia il codice sorgente

Merge -r 539600:539601 from trunk to 0.13 branch. Fixes: HADOOP-1388.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/branches/branch-0.13@539603 13f79535-47bb-0310-9956-ffa450edef68
Doug Cutting 18 anni fa
parent
commit
13c9820956
2 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 3 0
      CHANGES.txt
  2. 1 1
      src/webapps/job/taskdetails.jsp

+ 3 - 0
CHANGES.txt

@@ -404,6 +404,9 @@ Branch 0.13 (unreleased changes)
 121. HADOOP-1361.  Fix various calls to skipBytes() to check return
      value. (Hairong Kuang via cutting)
 
+122. HADOOP-1388.  Fix a potential NullPointerException in web ui.
+     (Devaraj Das via cutting)
+
 
 Release 0.12.3 - 2007-04-06
 

+ 1 - 1
src/webapps/job/taskdetails.jsp

@@ -29,7 +29,7 @@
 <h2>All Task Attempts</h2>
 <center>
 <%
-	if( ts.length == 0 ) {
+	if( ts == null || ts.length == 0) {
 %>
 		<h3>No Task Attempts found</h3>
 <%