Browse Source

【综合】广告数据导致偶发crash修复

tangchao 1 year ago
parent
commit
f98b94aaae

+ 48 - 0
PDF Office/PDF Master.xcodeproj/xcuserdata/kdanmobile.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

@@ -436,5 +436,53 @@
             landmarkType = "7">
          </BreakpointContent>
       </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            uuid = "477F7A12-A4C6-40CD-A864-43949D7E7620"
+            shouldBeEnabled = "Yes"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "PDF Master/AppDelegate.swift"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "192"
+            endingLineNumber = "192"
+            landmarkName = "applicationShouldOpenUntitledFile(_:)"
+            landmarkType = "7">
+            <Locations>
+               <Location
+                  uuid = "477F7A12-A4C6-40CD-A864-43949D7E7620 - 8fc8c781c07d145d"
+                  shouldBeEnabled = "Yes"
+                  ignoreCount = "0"
+                  continueAfterRunningActions = "No"
+                  symbolName = "PDF_Master.AppDelegate.applicationShouldOpenUntitledFile(__C.NSApplication) -&gt; Swift.Bool"
+                  moduleName = "PDF Master"
+                  usesParentBreakpointCondition = "Yes"
+                  urlString = "file:///Users/kdanmobile/work/tangchao/git/PDFOffice/PDF%20Office/PDF%20Master/AppDelegate.swift"
+                  startingColumnNumber = "9223372036854775807"
+                  endingColumnNumber = "9223372036854775807"
+                  startingLineNumber = "194"
+                  endingLineNumber = "194"
+                  offsetFromSymbolStart = "559">
+               </Location>
+               <Location
+                  uuid = "477F7A12-A4C6-40CD-A864-43949D7E7620 - 8fc8c781c07d145d"
+                  shouldBeEnabled = "Yes"
+                  ignoreCount = "0"
+                  continueAfterRunningActions = "No"
+                  symbolName = "PDF_Master.AppDelegate.applicationShouldOpenUntitledFile(__C.NSApplication) -&gt; Swift.Bool"
+                  moduleName = "PDF Master"
+                  usesParentBreakpointCondition = "Yes"
+                  urlString = "file:///Users/kdanmobile/work/tangchao/git/PDFOffice/PDF%20Office/PDF%20Master/AppDelegate.swift"
+                  startingColumnNumber = "9223372036854775807"
+                  endingColumnNumber = "9223372036854775807"
+                  startingLineNumber = "194"
+                  endingLineNumber = "194"
+                  offsetFromSymbolStart = "648">
+               </Location>
+            </Locations>
+         </BreakpointContent>
+      </BreakpointProxy>
    </Breakpoints>
 </Bucket>

+ 2 - 2
PDF Office/PDF Master/Class/KMAdvertisement/View/Tableview/KMAdvertisementTableView.swift

@@ -94,11 +94,11 @@ typealias KMAdvertisementTableViewDidSelect = (_ view: KMAdvertisementTableView,
     
     func reloadData() {
         self.data.removeAll()
-        if inputData.recommondContentPDFPro != nil {
+        if inputData?.recommondContentPDFPro != nil {
             self.data.append(inputData.recommondContentPDFPro!)
         }
         
-        if inputData.recommondContentOther != nil {
+        if inputData?.recommondContentOther != nil {
             self.data.append(inputData.recommondContentOther!)
         }
         

+ 1 - 1
PDF Office/PDF Master/Class/KMAdvertisement/View/View/KMAdvertisementShowView.swift

@@ -57,7 +57,7 @@ class KMAdvertisementShowView: NSView {
     }
     
     func reloadData() {
-        guard let model = inputData.content?.first else { 
+        guard let model = inputData?.content?.first else { 
             self.contentView.isHidden = true
             return
         }