Fix two NULL-deref
This commit is contained in:
@@ -71,7 +71,7 @@ public class HLSController {
|
||||
|
||||
response.setHeader("Access-Control-Allow-Origin", "*");
|
||||
|
||||
int id = ServletRequestUtils.getIntParameter(request, "id");
|
||||
int id = ServletRequestUtils.getIntParameter(request, "id", 0);
|
||||
MediaFile mediaFile = mediaFileService.getMediaFile(id);
|
||||
Player player = playerService.getPlayer(request, response);
|
||||
String username = player.getUsername();
|
||||
|
||||
+1
-1
@@ -63,7 +63,7 @@ public class StatusChartController extends AbstractChartController {
|
||||
@RequestMapping(method = RequestMethod.GET)
|
||||
public synchronized ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
|
||||
String type = request.getParameter("type");
|
||||
int index = ServletRequestUtils.getIntParameter(request, "index");
|
||||
int index = ServletRequestUtils.getIntParameter(request, "index", 0);
|
||||
|
||||
List<TransferStatus> statuses = Collections.emptyList();
|
||||
if ("stream".equals(type)) {
|
||||
|
||||
Reference in New Issue
Block a user