Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
abook_check
  • Overview
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • abook_android
  • abook_check
  • Merge Requests
  • !292

Merged
Opened Feb 22, 2023 by Kazuyuki Hida@hida-k 
  • Report abuse
Report abuse

定期点検で点検中、点検済みの点検を削除しようとすると、処理中で止まる不具合の修正

deleteRoutineTaskReportメソッドで、reportStartDateの書式変換する際に、変換前の書式が想定しているものと異なっていたため、変換後の文字列がnullになっていて、それを使った際に、NullPointerExceptionが発生していた。そのため、終了時のコールバックが実行されずに、処理中のダイアログが消えない状態になっていた。

そのため、Dateの書式を事前に変更した。

Edited Feb 22, 2023 by Yujin Seo
  • Discussion 1
  • Commits 1
  • Changes 1
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
  • Kazuyuki Hida
    @hida-k started a discussion on the diff Feb 22, 2023
    Resolved by Yujin Seo Feb 22, 2023
    ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ABookCheckWebViewHelper.java
    139 139
    140 140 if (reportType == Constant.ReportType.RoutineTask) {
    141 141 taskReportId = Integer.valueOf(param.get(ABookKeys.TASK_REPORT_ID));
    142 reportStartDate = param.get(ABookKeys.REPORT_START_DATE);
    142 reportStartDate = param.get(ABookKeys.REPORT_START_DATE).replace("T", " ").replace("Z", "");
    143 143 mOperationLogic.deleteRoutineTaskReport(operationId, contentId, taskKey, taskReportId, reportStartDate);
    • Kazuyuki Hida @hida-k commented Feb 22, 2023
      Developer

      「yyyy-MM-ddTHH:㎜:ss」という書式で来ていたので、「yyyy-MM-ddTHH:㎜:ssZ」が来た場合も対応できるように書式を変更している。

      あまりきれいではない方法ではあるが、内部で使用している書式変換メソッドは、他でも使用している可能性があり影響を局所化する意味も含めて、このような手法を採用した。

      Edited Feb 22, 2023
      「yyyy-MM-ddTHH:㎜:ss」という書式で来ていたので、「yyyy-MM-ddTHH:㎜:ssZ」が来た場合も対応できるように書式を変更している。 あまりきれいではない方法ではあるが、内部で使用している書式変換メソッドは、他でも使用している可能性があり影響を局所化する意味も含めて、このような手法を採用した。
    Please register or sign in to reply
  • Kazuyuki Hida @hida-k

    assigned to @seo

    Feb 22, 2023

    assigned to @seo

    assigned to @seo
    Toggle commit list
  • Yujin Seo @seo

    resolved all discussions

    Feb 22, 2023

    resolved all discussions

    resolved all discussions
    Toggle commit list
  • Yujin Seo @seo

    unmarked as a Work In Progress

    Feb 22, 2023

    unmarked as a Work In Progress

    unmarked as a **Work In Progress**
    Toggle commit list
  • Yujin Seo @seo

    merged

    Feb 22, 2023

    merged

    merged
    Toggle commit list
  • Yujin Seo @seo

    mentioned in commit a026403b

    Feb 22, 2023

    mentioned in commit a026403b

    mentioned in commit a026403bd2cf75f39ab31febc5c32c0dee1f652e
    Toggle commit list
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment
Yujin Seo
Assignee
Yujin Seo @seo
Assign to
None
Milestone
None
Assign milestone
Time tracking
2
2 participants
Reference: abook_android/abook_check!292
×

Revert this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.
×

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.